[antlr-interest] n00b Question

Anders Karlsson anders at globe-trotter.us
Wed Aug 20 19:50:14 PDT 2008


Thanks Tom,

I did as you said 

expr
	:	(IDENTIFIER '=' VALUE ) 
	;

// lex rules

IDENTIFIER
    :	LETTER (LETTER|DIGIT)*
    ;

VALUE
    :	'"' (LETTER|DIGIT)* '"'
    ;

so now it works. I was wondering how to ignore the end of file value, what is the normal way to do that?

BR/Anders.


More information about the antlr-interest mailing list