-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
The compiler panics, when using an equal (=) instead of an assignment (:=) operator in an enum type definition. For example
TYPE State:
(
Idle := 0,
Running = 1, // This should be :=
);
END_TYPE
will panic in the pre-processor with the following message
thread 'main' panicked at compiler/plc_ast/src/pre_processor.rs:81:61:
expected assignment
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
We should catch these as part of a syntax error in the parser.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers