-
Notifications
You must be signed in to change notification settings - Fork 121
make yychar long #558
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
make yychar long #558
Conversation
…files larger than 2GB. Closes #536
Markdown syntax
jflex/changelog.md
Outdated
| ## [JFlex 1.8.0](https://github.com/jflex-de/jflex/milestone/11) | ||
| - Unicode 10.0 and 11.0 are supported (#540, #555) | ||
| - Unicode Emoji properties are supported for Unicode versions 8.0+ (#546) | ||
| - make yychar long to enable scanners with the %char option to consume files larger than 2GB (#536) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: you could also format yychar and %char was coe with ``
| @@ -0,0 +1 @@ | |||
| Over2GbInput.java | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generated files shouldn't be in src/test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is the over-2GB input file generator; it is not itself generated.
| @@ -0,0 +1 @@ | |||
| Over2GbInput.java | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I think you didn't intent to submit Over2GbInput-0.input
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did mean to, actually. This is the input file that is over 2GB. It would be better to generate it at test time, though that will slow the test down quite a bit. I'll look into generating at test time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I think such a large file in git is not a good idea. I think a quick workaround is to zip that file, and open the zipped version in the test.
|
Hmmm, I've been trying to reproduce the bug, and if the consumer doesn't read yychar, then nothing bad happens. |
|
Please see #605 |
make yychar long to enable scanners with the %char option to consume files larger than 2GB. Closes #536