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

Re: minor annoyance

What became of the suggestion below.
Do you plan on doing this ? Otherwise I'll modify the main in SableCC to do
it (it's straightforward, you can even use gnu getopt java package to have
finer option support)

One other small remark:

The constructor in LexerException should be public. I subclass the generated
Lexer to overwrite filter(). My subclass is by choice not in the lexer
package. I want to be able to throw LexerExceptions.



-----Original Message-----
From: Archie Cobbs <archie@whistle.com>
To: sablecc-list@sable.mcgill.ca <sablecc-list@sable.mcgill.ca>
Date: Tuesday, July 28, 1998 5:56 PM
Subject: minor annoyance

>When you run sablecc, it seems to have it's own ideas about where
>the generated files go.
>For example, suppose your grammar contians "Package foo.bar;".
>Example 1:
>  $ cd /foo/bar
>  $ java SableCC grammar
>  Generated files go into foo/bar/foo/bar/*
>Example 2:
>  $ cd /
>  $ java SableCC /foo/bar/grammar
>  Generated files go into foo/bar/foo/bar/*
>I want to keep the grammar file in the same directory as the
>java files (ie, /foo/bar). But there seems to be no way to do
>this and have the generated files go into /foo/bar/*.
>Ie, it would be nice if in Example 2 they went into /foo/bar/*,
>or else SableCC took a command line argument "-d /some/directory".
>Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com