2020-08-28 13:29:47 +08:00
|
|
|
# Tutorials
|
|
|
|
|
2020-09-11 17:39:10 +08:00
|
|
|
## Antlr4 installation
|
|
|
|
|
|
|
|
## How to extend new grammar
|
|
|
|
|
|
|
|
## How to expose Javascript interface in this project
|
|
|
|
|
|
|
|
## Integrate with Monaco Editor
|
|
|
|
|
2021-01-05 16:06:56 +08:00
|
|
|
## Release
|
|
|
|
|
2021-01-05 16:09:07 +08:00
|
|
|
npm run script
|
2021-01-05 16:06:56 +08:00
|
|
|
|
2021-01-05 16:09:07 +08:00
|
|
|
```bash
|
2021-01-05 16:06:56 +08:00
|
|
|
npm run release -- --release-as minor
|
2021-01-05 16:09:07 +08:00
|
|
|
```
|
2021-01-05 16:06:56 +08:00
|
|
|
|
2021-01-05 16:09:07 +08:00
|
|
|
Or
|
2021-01-05 16:06:56 +08:00
|
|
|
|
2021-01-05 16:09:07 +08:00
|
|
|
```bash
|
2021-01-05 16:06:56 +08:00
|
|
|
npm run release -- --release-as 1.1.0
|
2021-01-05 16:09:07 +08:00
|
|
|
```
|
2021-01-05 16:06:56 +08:00
|
|
|
|
2020-08-28 13:29:47 +08:00
|
|
|
## Reference
|
|
|
|
|
|
|
|
- <https://tomassetti.me/writing-a-browser-based-editor-using-monaco-and-antlr/>
|
|
|
|
- [SQL](https://en.wikipedia.org/wiki/SQL)
|
|
|
|
- [FlinkSQL](https://github.com/apache/flink/blob/master/flink-table/flink-sql-parser/src/test/java/org/apache/flink/sql/parser/CreateTableLikeTest.java)
|
|
|
|
- [antlr4 grammar](https://github.com/antlr/grammars-v4/tree/master/sql)
|
|
|
|
- <https://github.com/apache/spark/blob/master/sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4>
|