feat: recomplie hive sql grammar and fix parser about
This commit is contained in:
@ -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 () {
|
||||
|
Reference in New Issue
Block a user