[antlr-interest] paraphrase without lexer

Terence Parr parrt at jguru.com
Fri Apr 12 10:22:30 PDT 2002


On Friday, April 12, 2002, at 08:49  AM, Silvain Piree wrote:

>
> Hi,
>
> I'm using Antlr to create a parser, but because I'm not using the lexer
> support of Antlr, I can't seem to specify a "paraphrase" for a token
> (which is used when issueing a syntax error).
>
> Does anyone know if it's possible to specify a paraphrase in the
> parser, instead of in the lexer?
>
> e.g.
>
> tokens {
>     MYTOKEN (options {paraphrase="my token"})
> }

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.

Best regards,
Terence


 

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



More information about the antlr-interest mailing list