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

Crash in case of ambiguous grammar #52

Open
tirix opened this issue Dec 21, 2021 · 0 comments
Open

Crash in case of ambiguous grammar #52

tirix opened this issue Dec 21, 2021 · 0 comments

Comments

@tirix
Copy link
Collaborator

tirix commented Dec 21, 2021

See set.mm PR#2379:
In case of an ambiguous grammar ($a class A B : $.), the program panics:

> cargo run -- -g -p ../set.mm/set.mm 
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/grammar.rs:1161:73
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Any { .. }', src/database.rs:292:31

It shall rather issue a diagnostic complaining about the grammar being ambiguous.

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

No branches or pull requests

1 participant