*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)
*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)