[antlr-interest] on parsers look and feel + #["="]

Cristian Amitroaie cristian at amiq.ro
Mon Dec 1 08:57:38 PST 2003


Hi Ric,

> >
> > LookLexer.g:14:8: warning:Redefinition of token in tokens {...}: EQ
> > LookLexer.g:15:10: warning:Redefinition of token in tokens {...}: SEMI
>
> Do you have lexer and parser in one file ? I have them in separate files
> and get no warnings.

2 files, lexer imports parser's vocab (a lot of keywords, not that I like it).

I attached a small example.

---
[cristian at lapc Look]$ java antlr.Tool LookParser.g
ANTLR Parser Generator   Version 2.7.2   1989-2003 jGuru.com
[cristian at lapc Look]$ java antlr.Tool LookLexer.g
ANTLR Parser Generator   Version 2.7.2   1989-2003 jGuru.com
LookLexer.g:14:8: warning:Redefinition of token in tokens {...}: EQ
LookLexer.g:15:10: warning:Redefinition of token in tokens {...}: SEMI
---

10x,
Cristian


 

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: LookLexer.g
Type: text/x-java
Size: 644 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20031201/5282abfc/LookLexer.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LookParser.g
Type: text/x-java
Size: 262 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20031201/5282abfc/LookParser.bin


More information about the antlr-interest mailing list