Need to add a simple way to add errors into the parse table via the language definition so that the language can add suggestions for failures or indication of unsupported or future features of the language.
For example if you can't have a [Dash] followed by a [RArrow] yet but you plan to in the future, it is a deprecated feature, or a common mistake then you could add something like the following to the grammar,
<Statement> := [Dash] [LArrow] <Number>
| [Dash] [RArrow] err: "May not use -> yet!";
Need to add a simple way to add errors into the parse table via the language definition so that the language can add suggestions for failures or indication of unsupported or future features of the language.
For example if you can't have a
[Dash]followed by a[RArrow]yet but you plan to in the future, it is a deprecated feature, or a common mistake then you could add something like the following to the grammar,