Hi, I have a rule like follows:
formulaList : ( WHITESPACE? formula WHITESPACE? )* EOF ;
which gives me the following warning:
(200): Decision can match input such as "WHITESPACE" using multiple
alternatives: 1, 2 As a result,
alternative(s) 2 were disabled for that input
WHITESPACE is defined as usual, and the formula rule works fine.
How can I get rid of this?
I want formulaList to match a file which contains a formula on each
line, optionally preceded/followed by whitespace and empty lines should
be allowed. I have tried several things, but I cannot get rid of the
warning.
I have
NEWLINE
: ( '\r\n' | '\r' | '\n' )
{ $channel = HIDDEN; }
;
but the interpreter does not seem to ignore them. Doesn’t it know about
the hidden channel?
I do not want to make WHITESPACE hidden since it is meaningful as a
separator inside of ‘formula’.
Cheers, H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
signature.asc
Description: OpenPGP digital signature
List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address
