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
Stack overflow before parsing #1736
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, getting a stack overflow when trying to parse a recursive type using nom. The leaves of the AST tree were reduced to make the example simpler.
Maybe I am not using nom the proper way ?
Prerequisites
Here are a few things you should provide to help me understand the issue:
rustc 1.74.1 (a28077b28 2023-12-04)
nom = "7.1.3"
cargo add nom
Test case
Example test case:
Interestingly, using the
not
operator works with a recursive type. I had the following before:So it would seem calling the
parse_expression
twice creates the issue.And this worked fine. Am running on arm macOS.
The text was updated successfully, but these errors were encountered: