You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Reported by anonymous on 2005-03-16 22:24 UTC
If following by design
pattern:
ab / cde { System.out.println(yytext()); return 2; }
abcd / f { System.out.println(yytext()); return 7; }
string:
abcde
result
prints out "abcd" while returns 2.
--Xiang (xyu at cs.princeton.edu)
The text was updated successfully, but these errors were encountered:
lsf37
changed the title
yytext() return longer than expected with lookahead
[Bug] yytext() return longer than expected with lookahead [sf#72]
Feb 15, 2015
Commented by lsf37 on 2007-11-04 08:55 UTC
Logged In: YES
user_id=93534
Originator: NO
This fixed (somewhat) now in svn revision 276.
There are two special cases for lookahead implemented now that
will definitely work correctly: when in r1/r2 either r1 or r2
have a fixed length, the lookahaed is matched correctly and
efficiently.
General lookahead is still pretty much horribly broken, though.
*Reported by anonymous on 2005-03-16 22:24 UTC
If following by design
pattern:
ab / cde { System.out.println(yytext()); return 2; }
abcd / f { System.out.println(yytext()); return 7; }
string:
abcde
result
prints out "abcd" while returns 2.
--Xiang (xyu at cs.princeton.edu)
The text was updated successfully, but these errors were encountered: