Skip to content

[Bug] yytext() return longer than expected with lookahead [sf#72] #74

@lsf37

Description

@lsf37

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugNot working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions