Indhu Bharathi wrote:
> Try something like
>
>
> r : lbl=searchTerm ({spaceFollows($lbl.stop)}?=> lbl=searchTerm)*
> ;
>
> @members {
> public boolean spaceFollows(Token tkn) {
> return input.get(tkn.getTokenIndex()+1).getType()==WS;
> }
> }
Interesting, thanks for the tip. Since you offered a fix, then, I
assume this isn't a situation that indicates a fundamental design flaw?
That's good news, at least!
Thanks,
Reid
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---