[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warn about conflicting skeleton-generated files

From: Hans Aberg
Subject: Re: warn about conflicting skeleton-generated files
Date: Sun, 10 Dec 2006 13:56:52 +0100

On 10 Dec 2006, at 01:16, Joel E. Denny wrote:

Bison should warn about:

  bison --skeleton="" --graph="location.hh" foo.y

since generates a location.hh. I committed the following to make
that happen.

Another problem, somehwat irritating, is that Biosn does not know how to parse the filepaths of the skeleton files. So if I write my own, and put it in the project in the home directory, I need to write things like: bison --skeleton=../../../../Users/myself/Development/MLI/sources/ Parser/ even if Bison is invoked form the last directory. So variations might be:
  bison --skeleton=~/Development/MLI/sources/Parser/
  bison --skeleton=$HOME/Development/MLI/sources/Parser/
  bison --skeleton=$PWD/
bison --skeleton=$BISON/../../../../Users/myself/Development/MLI/ sources/Parser/ bison --skeleton=/Users/myself/Development/MLI/sources/Parser/ In the last one, Bison would recognize that a filepath starting with "/" is an absolute one.

  Hans Aberg

reply via email to

[Prev in Thread] Current Thread [Next in Thread]