Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Cannot use lookahead with ignorecase [sf#66] #68

Closed
lsf37 opened this issue Feb 15, 2015 · 5 comments
Closed

[Bug] Cannot use lookahead with ignorecase [sf#66] #68

lsf37 opened this issue Feb 15, 2015 · 5 comments
Labels
bug

Comments

@lsf37
Copy link
Member

@lsf37 lsf37 commented Feb 15, 2015

Reported by tomokiyo on 2004-08-04 20:54 UTC
If I specify a lookahead regex when %ignorecase is
specified, I got the following error (from attached
jflex source):

Reading "Foo.flex"
Exception in thread "main" java.lang.Error: Unkown
expression type 45 in type = 45
content :
foo
at JFlex.SemCheck.length(SemCheck.java:136)
at JFlex.SemCheck.checkLookAhead(SemCheck.java:84)
at JFlex.SemCheck.check(SemCheck.java:61)
at
JFlex.CUP$LexParse$actions.CUP$LexParse$do_action(LexParse.java:1653)
at JFlex.LexParse.do_action(LexParse.java:389)
at
java_cup.runtime.lr_parser.parse(lr_parser.java:569)
at JFlex.Main.generate(Main.java:73)
at JFlex.Main.generate(Main.java:303)
at JFlex.Main.main(Main.java:320)

I'm using JFlex 1.4.

@lsf37 lsf37 changed the title Cannot use lookahead with ignorecase [Bug] Cannot use lookahead with ignorecase [sf#66] Feb 15, 2015
@lsf37 lsf37 added this to the jflex bug milestone Feb 15, 2015
@lsf37 lsf37 closed this Feb 15, 2015
@lsf37
Copy link
Member Author

@lsf37 lsf37 commented Feb 15, 2015

Commented by tomokiyo on 2004-08-04 20:54 UTC
Foo.flex

@lsf37
Copy link
Member Author

@lsf37 lsf37 commented Feb 15, 2015

Commented by lsf37 on 2004-10-24 08:55 UTC
Logged In: YES
user_id=93534

Thanks for the report.

I've committed a fix for this to the repository. It will be released with the
next version of JFlex.

Gerwin

@lsf37
Copy link
Member Author

@lsf37 lsf37 commented Feb 15, 2015

Updated by lsf37 on 2004-10-24 08:55 UTC

  • priority: 5 --> 7
@lsf37
Copy link
Member Author

@lsf37 lsf37 commented Feb 15, 2015

Updated by lsf37 on 2004-10-24 10:22 UTC

  • status: open --> open-fixed
@lsf37
Copy link
Member Author

@lsf37 lsf37 commented Feb 15, 2015

Updated by lsf37 on 2004-11-07 06:04 UTC

  • status: open-fixed --> closed
@lsf37 lsf37 added the bug label Feb 17, 2015
@lsf37 lsf37 modified the milestone: jflex bug Feb 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.