diff --git a/src/index.ts b/src/index.ts index 5a766da..12a5ed6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,6 @@ export * from './parser'; export * from './utils'; +export * from './lib/flinksql/FlinkSqlParserListener'; +export * from './lib/flinksql/FlinkSqlParserVisitor'; +export * from './lib/generic/SqlParserVisitor'; +export * from './lib/generic/SqlParserListener'; diff --git a/src/parser/flinksql.ts b/src/parser/flinksql.ts index 5d5fe51..22e50a8 100644 --- a/src/parser/flinksql.ts +++ b/src/parser/flinksql.ts @@ -1,9 +1,6 @@ import { InputStream, CommonTokenStream, Lexer } from 'antlr4'; import { FlinkSqlLexer } from '../lib/flinksql/FlinkSqlLexer'; import { FlinkSqlParser } from '../lib/flinksql/FlinkSqlParser'; -export * from '../lib/flinksql/FlinkSqlParserListener'; -export * from '../lib/flinksql/FlinkSqlParserVisitor'; - import BasicParser from './common/basicParser'; export default class FlinkSQL extends BasicParser { diff --git a/src/parser/generic.ts b/src/parser/generic.ts index 9a12457..4a4e8e3 100644 --- a/src/parser/generic.ts +++ b/src/parser/generic.ts @@ -1,9 +1,6 @@ import { InputStream, CommonTokenStream, Lexer } from 'antlr4'; import { SqlLexer } from '../lib/generic/SqlLexer'; import { SqlParser } from '../lib/generic/SqlParser'; -export * from '../lib/generic/SqlParserVisitor'; -export * from '../lib/generic/SqlParserListener'; - import BasicParser from './common/basicParser'; export default class GenericSQL extends BasicParser { diff --git a/src/parser/index.ts b/src/parser/index.ts index 8858d79..a541081 100644 --- a/src/parser/index.ts +++ b/src/parser/index.ts @@ -1,8 +1,3 @@ -export * from './generic'; -export * from './plsql'; -export * from './hive'; -export * from './flinksql'; -export * from './spark'; export { default as GenericSQL } from './generic'; export { default as PLSQL } from './plsql'; export { default as HiveSQL } from './hive';