refactor: listener and visitor entrance
This commit is contained in:
parent
110c4f1fa5
commit
2aab4b6ca7
@ -15,7 +15,7 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
parser grammar HiveSqlParser;
|
parser grammar HiveSql;
|
||||||
|
|
||||||
options {
|
options {
|
||||||
tokenVocab=HiveSqlLexer;
|
tokenVocab=HiveSqlLexer;
|
File diff suppressed because one or more lines are too long
2058
src/lib/hive/HiveSqlListener.js
Normal file
2058
src/lib/hive/HiveSqlListener.js
Normal file
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
1378
src/lib/hive/HiveSqlVisitor.js
Normal file
1378
src/lib/hive/HiveSqlVisitor.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,8 @@
|
|||||||
import { InputStream, CommonTokenStream, Lexer } from 'antlr4';
|
import { InputStream, CommonTokenStream, Lexer } from 'antlr4';
|
||||||
import { HiveSqlLexer } from '../lib/hive/HiveSqlLexer';
|
import { HiveSqlLexer } from '../lib/hive/HiveSqlLexer';
|
||||||
import { HiveSqlParser } from '../lib/hive/HiveSqlParser';
|
import { HiveSql } from '../lib/hive/HiveSql';
|
||||||
export * from '../lib/hive/HiveSqlParserListener';
|
export * from '../lib/hive/HiveSqlListener';
|
||||||
export * from '../lib/hive/HiveSqlParserVisitor';
|
export * from '../lib/hive/HiveSqlVisitor';
|
||||||
|
|
||||||
import BasicParser from './common/BasicParser';
|
import BasicParser from './common/BasicParser';
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ export default class HiveSQL extends BasicParser {
|
|||||||
}
|
}
|
||||||
public createParserFromLexer(lexer: Lexer) {
|
public createParserFromLexer(lexer: Lexer) {
|
||||||
const tokenStream = new CommonTokenStream(lexer);
|
const tokenStream = new CommonTokenStream(lexer);
|
||||||
return new HiveSqlParser(tokenStream);
|
return new HiveSql(tokenStream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user