refactor: listener and visitor entrance

This commit is contained in:
chenfeng 2020-11-25 16:57:53 +08:00
parent 110c4f1fa5
commit 2aab4b6ca7
9 changed files with 12668 additions and 12668 deletions

View File

@ -15,7 +15,7 @@
limitations under the License.
*/
parser grammar HiveSqlParser;
parser grammar HiveSql;
options {
tokenVocab=HiveSqlLexer;

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

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,8 @@
import { InputStream, CommonTokenStream, Lexer } from 'antlr4';
import { HiveSqlLexer } from '../lib/hive/HiveSqlLexer';
import { HiveSqlParser } from '../lib/hive/HiveSqlParser';
export * from '../lib/hive/HiveSqlParserListener';
export * from '../lib/hive/HiveSqlParserVisitor';
import { HiveSql } from '../lib/hive/HiveSql';
export * from '../lib/hive/HiveSqlListener';
export * from '../lib/hive/HiveSqlVisitor';
import BasicParser from './common/BasicParser';
@ -14,7 +14,7 @@ export default class HiveSQL extends BasicParser {
}
public createParserFromLexer(lexer: Lexer) {
const tokenStream = new CommonTokenStream(lexer);
return new HiveSqlParser(tokenStream);
return new HiveSql(tokenStream);
}
}