Closed molenzwiebel closed 3 years ago
Right, we should probably disallow Sequence
, Opt
, and Alt
in context-free syntax, as various generators do not support that.
Fixed in https://github.com/metaborg/sdf/commit/c06c09be6c7cd48c1162d43fccafa0bd9b5fcc11, will be released in Spoofax3 0.11.9.
Summary
Using alternation in context-free syntax directly results in a failure during signature generation.
What you did
Consider a program such as:
This syntax is only allowed for lexical productions, but unfortunately it is also supported for context-free and as a result passes both parsing and the new statix static analysis.
What you expected to happen
An error (Spoofax 2 behavior).
What actually happened
Context