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] Scanner does not clean zzFin appropriately [sf#118] #119
Comments
*Commented by anonymous on 2011-11-10 20:40 UTC |
Commented by steve_rowe on 2013-10-11 08:55 UTC |
Commented by steve_rowe on 2013-12-21 23:12 UTC The patch for Emitter.java was a bit more involved though, since zzFin wasn't being fully updated with the original patch on this issue - here's what I committed:
I also added a new test case named genlook2 that failed without the above patch and succeeded with it. |
Updated by lsf37 on 2014-01-16 06:47 UTC
|
Updated by lsf37 on 2014-03-01 00:21 UTC
|
*Reported by anonymous on 2011-11-10 20:40 UTC
I think, there is a bug on the line 1207 of the Emitter.java
Instead of " println(" if ((zzAttrL[zzFState] & 1) == 1) { zzFinL[zzFPos] = true; } ");"
it should read " println(" zzFinL[zzFPos] = ((zzAttrL[zzFState] & 1) == 1;");"
Otherwise, zzFin buffer is not cleared correctly (it is reused, but in the current code elements are never reset to false. See the patch attached.
The text was updated successfully, but these errors were encountered: