Skip to content

Turn off re2c:eof = 0 #254

Description

@terpstra

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions