feat: recomplie hive sql grammar and fix parser about

This commit is contained in:
hayden 2023-07-05 16:22:40 +08:00 committed by Ziv
parent 1d890e58fe
commit e97e0b2ef6
8 changed files with 12748 additions and 12748 deletions

View File

@ -4,8 +4,8 @@ export * from './lib/flinksql/FlinkSqlParserListener';
export * from './lib/flinksql/FlinkSqlParserVisitor';
export * from './lib/generic/SqlParserVisitor';
export * from './lib/generic/SqlParserListener';
export * from './lib/hive/HiveSqlListener';
export * from './lib/hive/HiveSqlVisitor';
export * from './lib/hive/HiveSqlParserListener';
export * from './lib/hive/HiveSqlParserVisitor';
export * from './lib/plsql/PlSqlParserListener';
export * from './lib/plsql/PlSqlParserVisitor';
export * from './lib/spark/SparkSqlVisitor';

View File

@ -1,4 +1,4 @@
// Generated from /Users/ziv/github.com/dt-sql-parser/src/grammar/hive/HiveSqlLexer.g4 by ANTLR 4.9.0-SNAPSHOT
// Generated from /Users/hayden/Desktop/dt-works/dt-sql-parser/src/grammar/hive/HiveSqlLexer.g4 by ANTLR 4.9.0-SNAPSHOT
import { ATN } from "antlr4ts/atn/ATN";

File diff suppressed because one or more lines are too long

View File

@ -1,19 +1,19 @@
import { Token } from 'antlr4ts';
import { CandidatesCollection } from 'antlr4-c3';
import { HiveSqlLexer } from '../lib/hive/HiveSqlLexer';
import { HiveSql, ProgramContext } from '../lib/hive/HiveSql';
import { HiveSqlParser, ProgramContext } from '../lib/hive/HiveSqlParser';
import BasicParser from './common/basicParser';
import { Suggestions } from './common/basic-parser-types';
export default class HiveSQL extends BasicParser<HiveSqlLexer, ProgramContext, HiveSql> {
export default class HiveSQL extends BasicParser<HiveSqlLexer, ProgramContext, HiveSqlParser> {
protected createLexerFormCharStream(charStreams) {
const lexer = new HiveSqlLexer(charStreams);
return lexer;
}
protected createParserFromTokenStream(tokenStream) {
return new HiveSql(tokenStream);
return new HiveSqlParser(tokenStream);
}
protected get splitListener () {