Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync lexer punctuations with ZetaSQL #181

Closed
27 of 40 tasks
apstndb opened this issue Oct 27, 2024 · 1 comment · Fixed by #182
Closed
27 of 40 tasks

Sync lexer punctuations with ZetaSQL #181

apstndb opened this issue Oct 27, 2024 · 1 comment · Fixed by #182

Comments

@apstndb
Copy link
Contributor

apstndb commented Oct 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant