[antlr-interest] (unknown)

mzukowski at yci.com mzukowski at yci.com
Thu Mar 13 08:22:12 PST 2003


read the docs on keywords and also how "protected" rules work in the lexer.

Monty

-----Original Message-----
From: gitadut [mailto:gitadut at yahoo.co.uk]
Sent: Thursday, March 13, 2003 5:22 AM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] (unknown)


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/ 


 

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



More information about the antlr-interest mailing list