[antlr-interest] Request enhancement ANTLR

Silvain Piree s.piree at enneya.com
Wed Jun 19 15:35:12 PDT 2002


Hi,

this is a request for enhancement of ANTLR.

Problem:
ANTLR does not register filename information with tokens;
only line/column information. 

This becomes a problem when using include files in which
case it is unknown which source file a token originates from.

Solution:
Add setFilename/getFilename to Token class and change
other classes (including code generators) to use this method.

The impacted classes are: Token, CommonToken,
CharScanner, LexerSharedInputState, JavaCodeGenerator
and CppCodeGenerator.

I'd be willing to implement these changes if we agree that this
enhancement is usefull.

Kind greetings, Silvain Piree




 

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



More information about the antlr-interest mailing list