[antlr-interest] How to increase generated lookahead
colettekirwan
colettekirwan at yahoo.co.uk
Tue Aug 12 03:13:17 PDT 2003
Hi,
Can some one explain what I am doing wrong?
My lookahead is set to 5
and I want to find the "a href" statment
I tried the following grammar
QUOTE_HREF
: '<''a' 'h''r''e''f'
;
and also
QUOTE_HREF
: "<a href"
;
But my generated code only stated the following
else if ((LA(1)=='<') && (LA(2)
=='a')) {
mQUOTE_HREF(true);
theRetToken=_returnToken;
}
How can I get it to to do more than 2 lookahead as it is now picking
up statement in my code that have < (greater than sign) and some text.
Regards
Colette
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list