[antlr-interest] Re: "back to the future" (merged lexer / parser spec)

lgcraymer lgc at mail1.jpl.nasa.gov
Fri Nov 19 14:37:17 PST 2004



Ter--

How about extending the capability to grammars in multiple files? 
That is, support literals in all files, export the literal strings to
a text file (or files--one per grammar) and add a "requires" option to
the lexer.

A good implementation would require translating "!#" into "BangHash"
or something similar via table lookup, but that should be pretty easy.
 Then keyword literals could be used in tree grammars for readability.
 It would also make it more practical to keep the lexer grammar in a
separate file from the other grammars which could improve maintainability.

--Loring





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the antlr-interest mailing list