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

[post] How ANTLR and its runtime works #53

Open
at15 opened this issue Jul 16, 2020 · 0 comments
Open

[post] How ANTLR and its runtime works #53

at15 opened this issue Jul 16, 2020 · 0 comments
Assignees
Labels
area/pl Programming Language area/rust

Comments

@at15
Copy link
Member

at15 commented Jul 16, 2020

Type

  • request post from @at15

Related

Description

While working on gce4, a lot of time is spent on parser, it's not the main focus for RDBMS.
But writing ast in unit test kills productivity, and hand written parser requires too much work for large language like SQL.
Besides gce4 is implemented in multiple languages.

It's not that straight forward to use ANTLR. For example:

  • Rust runtime is not official yet, and the author seems to be inactive for a while. Besides we had a proposal for rust target [idea] Rust target for ANTLR mos#20 back in 2017
  • Go generator and runtime can be optimized by using type switch
  • Cpp generator have some small problem w/ cpp20 (sign ... cpp

In order to work on the rust runtime, I need to know ANTLR works. Though writing a runtime and generator template is not that hard because the algo is in ANLTR itself and one can reference other language's runtime.

Update

  • change issue type from request to discuss
@at15 at15 added area/pl Programming Language area/rust labels Jul 16, 2020
@at15 at15 self-assigned this Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/pl Programming Language area/rust
Projects
None yet
Development

No branches or pull requests

1 participant