[antlr-interest] (unknown)

gitadut gitadut at yahoo.co.uk
Thu Mar 13 05:22:08 PST 2003


Antlr behaves abnormally when I want to describe the production rules 
in Lexer part reusing some of the rules already defined by me. 

Like METASTRING :
                 ((POP) | (STRING) | "/")
                 ;
When I have defined POP in some way. 

Next is how can I parse some reserve words by Antlr?
I've describes in Parser part 

Reserved :
          (CIRCUIT)
          ;
Then in Lexer 

CIRCUIT
       : "Circuit"
        ;
But it is not solving my problem. 
Are there any suggestions or comments from anyone?
Thanks in advance. 

Gita



 

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



More information about the antlr-interest mailing list