[antlr-interest] simple URL extractor
Johannes Luber
jaluber at gmx.de
Tue Apr 24 10:11:16 PDT 2007
bace.spam at gmx.net wrote:
>
> No, unfortunately I cannot discard the remaining text. I know the grammar looks fine - but does not work. I get the same inappropriate behavior if I set backtrack=true; at the beginning. Do you know how I can set the backtrack-option for only one rule in antlr v3:
Do you have rules which apply to the remaining text?
> rule
> (options {backtrack=true;})
> : alter1 | ... | alterN
> ;
Remove the () and the rule should be fine. I recommend though to add
memoize=true; to speed speed up the parser.
Best regards,
Johannes Luber
More information about the antlr-interest
mailing list