Skip to content

Parse Errors #6

Description

@Grant-Nelson

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!";

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions