dyweb / blog

Dongyue Tech Blog
https://blog.dongyueweb.com
14 stars 7 forks source link

[post] How ANTLR and its runtime works #53

Open at15 opened 4 years ago

at15 commented 4 years ago

Type

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:

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