-
Notifications
You must be signed in to change notification settings - Fork 68
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
Should not allow left recursion grammar to pass conversion #79
Comments
Not sure, how we could detect this in a reliable way. |
Maybe a simple idea is like detecting a cycle in a dag,
make a map to record every left rule:
[expr] -> add A https://github.com/pest-parser/pest/blob/master/meta/src/validator.rs#L727, perhaps this can provide more ideas |
code in master branch will cause a stack overflow
generated main.go
|
eg:
go run main.go "1 and 1"
Will cause dead loop
The text was updated successfully, but these errors were encountered: