[antlr-interest] Is it possible to tell whether the source or header is being generated?
Terence Parr
parrt at cs.usfca.edu
Sat May 26 09:15:19 PDT 2007
On May 26, 2007, at 9:07 AM, Luke A. Guest wrote:
> Hi,
>
> basically, I was just wondering if in any template in the
> <language>.stg
> file it is possible to determine whether the header orthe source is
> currently being generated? i.e. inside lexer()?
Well, shouldn't they be different templates? I can't remember but
should be a headerFile vs parser vs lexer etc...
Ter
More information about the antlr-interest
mailing list