[antlr-interest] How can you ignore White Space but record the last white space character used ?
johnclarke72
johnclarke at hotmail.com
Thu Jun 27 16:01:46 PDT 2002
In my White Space definition I tell it to ignore the White Space when
processing. eg :
// Ignore all White Space
WS : ( ' '
| '\t'
| '\r' '\n' { newline(); }
| '\n' { newline(); }
)
{$setType(Token.SKIP);} //ignore this token
;
However, is there an easy way to get it to record the fact that a
space has been detected so that this can be passed to the Parser ?
I would be grateful for all advice offered.
Thanks
John
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list