[antlr-interest] identifier with space
lloyd_from_far
ld at galador.net
Tue Oct 28 18:23:22 PST 2003
I'm trying to read some command with identifer which might contain
space.
I tryed some thing like that
IDENTIFIER:
(IDENTIFIER SPACE ANYNAME) => IDENTIFIER SPACE ANYNAME
| NAME ;
protected NAME options { testLiterals=true; }:
'a' .. 'z' ( 'a' .. 'z' | '0' .. '9' | '_' | '$' | '#' | '.' )* ;
protected ANYNAME options { testLiterals=true; }:
( 'a' .. 'z' | '0' .. '9' | '_' | '$' | '#' | '.' )* ;
but ANTLR generate an infinite recursion error any idea ?
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list