Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Turn off re2c:eof = 0 #254
I have a .re file with several different lexers in it.
Some of them use the new 're2c:eof = 0' feature. However, some of them use the 'sentinel method' with no need to YYFILL. As far as I can tell, once you turn on 're2c:eof = 0', it stays on for the rest of the file. I worked around this by putting all my 'sentinel method' lexers at the top of the file and then all the 'EOF rule' parsers at the bottom.
If there is already a method 'unset' EOF mode, it should be documented somewhere. If there is not, it should be added.