docs(readme): fix documentation error (#110)

This commit is contained in:
mumiao 2023-05-24 17:01:17 +08:00 committed by GitHub
parent eeb111b5c5
commit 89b22af5ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -16,6 +16,7 @@ dt-sql-parser 是一个基于 [ANTLR4](https://github.com/antlr/antlr4) 开发
- Spark SQL - Spark SQL
- Hive SQL - Hive SQL
- PL/SQL - PL/SQL
- Trino SQL
> 提示:当前的 Parser 是 `Javascript` 语言版本,如果有必要,可以尝试编译 Grammar 文件到其他目标语言 > 提示:当前的 Parser 是 `Javascript` 语言版本,如果有必要,可以尝试编译 Grammar 文件到其他目标语言
@ -103,7 +104,6 @@ console.log(tokens)
tokenIndex: -1 tokenIndex: -1
type: 137 type: 137
_text: null _text: null
text: "SELECT"
}, },
... ...
] ]

View File

@ -26,6 +26,7 @@ Supported SQL:
- Hive SQL - Hive SQL
- PL/SQL - PL/SQL
- PostgreSQL - PostgreSQL
- Trino SQL
>Tips: This project is the default for Javascript language, also you can try to compile it to other languages if you need. >Tips: This project is the default for Javascript language, also you can try to compile it to other languages if you need.
@ -121,7 +122,6 @@ console.log(tokens)
tokenIndex: -1 tokenIndex: -1
type: 137 type: 137
_text: null _text: null
text: "SELECT"
}, },
... ...
] ]

View File

@ -5,7 +5,6 @@ describe('FlinkSQL Lexer tests', () => {
const sql = 'SELECT * FROM table1'; const sql = 'SELECT * FROM table1';
const tokens = parser.getAllTokens(sql); const tokens = parser.getAllTokens(sql);
test('token counts', () => { test('token counts', () => {
expect(tokens.length - 1).toBe(7); expect(tokens.length - 1).toBe(7);
}); });