[antlr-interest] (no subject)
craig at palantir.co.za
craig at palantir.co.za
Fri Apr 20 07:06:43 PDT 2007
Hi,
Why does the grammar below mismatch on the space in the following test input.
grammar csv;
options {
language=java;
}
r : ID (COMMA ID)+ EOF;
ID : 'a'..'z' + ;
COMMA : ',';
WS : (' '|'\r'|'\t'|'\u000C'|'\n')+ {$channel=HIDDEN;}
;
When I run with
test, testing, testagain
It is not ignoring the whitespace? Should $channel=HIDDEN not do the trick here?
Regards
Craig
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the antlr-interest
mailing list