Skip to content

Sync lexer punctuations with ZetaSQL #181

@apstndb

Description

@apstndb

Some punctuations are not yet handled in memefish.Lexer.
It cause panic when lexing even if parsing is not needed.

I think it is safe to add all punctuations in ZetaSQL.

https://github.com/google/zetasql/blob/194cd32b5d766d60e3ca442651d792c7fe54ea74/zetasql/parser/flex_tokenizer.l#L513-L552

Except MACRO_INVOCATION and MACRO_ARGUMENT_REFERENCE would be better to be implemented.

This makes Lexer more robust even to new lexical structures that are being tested privately.

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