Skip to content

Commit

Permalink
Export InputMismatchException in index.js
Browse files Browse the repository at this point in the history
Signed-off-by: Hieu Nguyen <phieu221199@gmail.com>
  • Loading branch information
hieunguyen2211 committed Apr 9, 2024
1 parent 360c86c commit fc64ce0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion runtime/JavaScript/src/antlr4/index.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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, InputMismatchExce
}
3 changes: 2 additions & 1 deletion runtime/JavaScript/src/antlr4/index.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
}

0 comments on commit fc64ce0

Please sign in to comment.