Skip to content

Commit 428d851

Browse files
authored
feat: #190 improve mysql grammer (#196)
* refactor: generic rename to mysql * refactor: g4 with mysql syntax * test: mysql syntax * refactor: remove useless keywords * refactor: remove nonReserved keywords * refactor: lint specificFunction --------- Co-authored-by: liuyi <liuyi@dtstack.com>
1 parent 84b2d77 commit 428d851

139 files changed

Lines changed: 123150 additions & 110286 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ yarn test
1919
Compile one language:
2020

2121
```bash
22-
yarn antlr4 --lang=generic
22+
yarn antlr4 --lang=mysql
2323
```
2424

2525
Compile all languages:

scripts/antlr4.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function main() {
6464
compile(language);
6565
});
6666
} else if (argv.lang) {
67-
// compile single: yarn antlr4 --lang=generic
67+
// compile single: yarn antlr4 --lang=mysql
6868
const supportedLanguage = languageEntries.some((language) => language === argv.lang);
6969
if (supportedLanguage) {
7070
compile(argv.lang);

src/grammar/generic/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/grammar/generic/SqlLexer.g4

Lines changed: 0 additions & 1250 deletions
This file was deleted.

0 commit comments

Comments
 (0)