[antlr-interest] paraphrase without lexer

Terence Parr parrt at jguru.com
Sun Apr 14 10:16:00 PDT 2002


On Friday, April 12, 2002, at 11:55  PM, Silvain Piree wrote:

> Terence,
>
>>> Does anyone know if it's possible to specify a paraphrase in the
>>> parser, instead of in the lexer?
>>
>> Well, if you're not using the lexer support of ANTLR then it can't help
>> you with paraphrases and can't transmit anything to the lexer.  With
>> your own lexer, you are completely on your own I'm afraid.
>
> I understand your point; I was hoping that it was possible to specify
> the paraphrase in the parser (in the token section) because the 
> paraphrase
> is only used by the parser, not by the lexer.

Ah...i had not thought about it that way.  You're right.  In principle 
that could work; only problem is that I think ANTLR stores that stuff in 
the lexer ;)

Ter
--
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org


 

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



More information about the antlr-interest mailing list