feat: recomplie hive sql grammar and fix parser about
This commit is contained in:
parent
1d890e58fe
commit
e97e0b2ef6
@ -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';
|
||||
|
@ -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
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user