Skip to content

Can we relax the EOF and don't insist on a Semicolon #36

@manticore-projects

Description

@manticore-projects

Currently every statement MUST end with a Semicolon, or else there will be an unexpected EOF exception.
In the real world, for single statements this Semicolon is optional. Oracle JDBC even refuses to work with a trailing Semicolon.

Would it be possible to terminate a statement by ";" | <EOF> | "\n\n" for practical reasons? (Then there is GO and / ...)
Alternatively we could keep a Pure Grammar and put a Tainted Grammar beside. I love pure after all but still wait to experience it in real life.

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