It drives me crasy!
I need a simple lexer that accept the strings like follows:
A = A
Where A is an any character sequence NOT including whitespaces.
Could anybody explain me why the following doesn't work?
grammar Test;
mapping : LID '=' LID;
LID : NOWS+ (' '+ NOWS+)* ;
fragment NOWS: ~('\r'|'\n'|' '|'\t') ;
WS : (' '|'\r'|'\n'|'\t')+ { $channel=HIDDEN; } ;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---