From 281b762b3d6f748657168d89419a7d5ba75072fe Mon Sep 17 00:00:00 2001 From: Hieu Nguyen Date: Tue, 9 Apr 2024 15:35:51 +0700 Subject: [PATCH] Export InputMismatchException in index.js Signed-off-by: Hieu Nguyen --- runtime/JavaScript/src/antlr4/index.node.js | 3 ++- runtime/JavaScript/src/antlr4/index.web.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/JavaScript/src/antlr4/index.node.js b/runtime/JavaScript/src/antlr4/index.node.js index 4d06196e90..d0b350f6ba 100644 --- a/runtime/JavaScript/src/antlr4/index.node.js +++ b/runtime/JavaScript/src/antlr4/index.node.js @@ -46,6 +46,7 @@ import RuleNode from "./tree/RuleNode.js" import TerminalNode from "./tree/TerminalNode.js" import arrayToString from "./utils/arrayToString.js" import TokenStreamRewriter from './TokenStreamRewriter.js'; +import InputMismatchException from "./error/InputMismatchException.js" export default { atn, dfa, context, misc, tree, error, Token, CommonToken, CharStreams, CharStream, InputStream, FileStream, CommonTokenStream, Lexer, Parser, @@ -57,5 +58,5 @@ export { RuleNode, TerminalNode, ParseTreeWalker, RuleContext, ParserRuleContext, Interval, IntervalSet, PredictionMode, LL1Analyzer, ParseTreeListener, ParseTreeVisitor, ATN, ATNDeserializer, PredictionContextCache, LexerATNSimulator, ParserATNSimulator, DFA, RecognitionException, NoViableAltException, FailedPredicateException, ErrorListener, DiagnosticErrorListener, BailErrorStrategy, DefaultErrorStrategy, - arrayToString, TokenStreamRewriter + arrayToString, TokenStreamRewriter, InputMismatchException } diff --git a/runtime/JavaScript/src/antlr4/index.web.js b/runtime/JavaScript/src/antlr4/index.web.js index 3965b941d1..f0e1778b8e 100644 --- a/runtime/JavaScript/src/antlr4/index.web.js +++ b/runtime/JavaScript/src/antlr4/index.web.js @@ -45,6 +45,7 @@ import RuleNode from "./tree/RuleNode.js" import TerminalNode from "./tree/TerminalNode.js" import arrayToString from "./utils/arrayToString.js" import TokenStreamRewriter from './TokenStreamRewriter.js'; +import InputMismatchException from "./error/InputMismatchException.js" export default { atn, dfa, context, misc, tree, error, Token, CommonToken, CharStreams, CharStream, InputStream, CommonTokenStream, Lexer, Parser, @@ -56,5 +57,5 @@ export { RuleNode, TerminalNode, ParseTreeWalker, RuleContext, ParserRuleContext, Interval, IntervalSet, PredictionMode, LL1Analyzer, ParseTreeListener, ParseTreeVisitor, ATN, ATNDeserializer, PredictionContextCache, LexerATNSimulator, ParserATNSimulator, DFA, RecognitionException, NoViableAltException, FailedPredicateException, ErrorListener, DiagnosticErrorListener, BailErrorStrategy, DefaultErrorStrategy, - arrayToString, TokenStreamRewriter + arrayToString, TokenStreamRewriter, InputMismatchException }