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

Add support for parser negative lookahead #134 #144

Merged
merged 1 commit into from May 7, 2021

Conversation

petee-d
Copy link
Contributor

@petee-d petee-d commented May 7, 2021

Support for parser negative lookahead, i.e. a term saying the following expression cannot be matched. Works very much like existing negation, except it doesn't consume any tokens. Allows for example resolving grammar conflicts by blacklisting some keywords for a sub-expression about to be parsed. See the example in the tests to get the idea. Also explained in this issue: #134

@alecthomas
Copy link
Owner

Very nice, thank you!

@alecthomas alecthomas merged commit 8442672 into alecthomas:master May 7, 2021
@petee-d petee-d mentioned this pull request May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants