Skip to content

Improve syntax error reporting #34

Open
@kaikalur

Description

@kaikalur

Due to (mostly) direct translation of the spec and especially keeping the expressions part as given in the spec, some syntax errors are not very good. For example:

SELECT Overlaps( overlaps ) AS overlaps;

Gives a bad error:

Parse error: 1:1 at token: SELECT

One simple addition would be to see if the next token (after the consumed token SELECT) is a keyword and use that as an error. So fro the above, it will be better to say:

Parse error: 1:8 at token: OVERLAPS

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