Skip to content

Crash in case of ambiguous grammar #52

@tirix

Description

@tirix

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions