[antlr-interest] <name>
Terence Parr
parrt at cs.usfca.edu
Thu May 24 10:19:16 PDT 2007
sure. whatever attributes go into lexer() template and outputFile()
or whatever are visible to any enclosed template. I think <name> may
actually be the grammar name.
Ter
On May 24, 2007, at 10:04 AM, Luke A. Guest wrote:
> Hi,
>
> Is it possible to get the base name in the stg file?
>
> For example, I'm wanting to provide a structure like this:
>
> package T_Lexer is
>
> type T_Lexer_Type is new ANTLR.Lexer.Lexer_Type with private;
>
> private
>
> end T_Lexer;
>
> The grammar would be called T.g and the filenames generated would be
> t_lexer.ads (specification) and t_lexer.adb (body).
>
> It's not too much of a problem if it can't be done, but I would
> like to
> try to stick as closely as possible to the Ada style guides.
>
> Thanks,
> Luke.
>
>
More information about the antlr-interest
mailing list