From cc54283042a972b4793707ff88e0bcf0ec20e90c Mon Sep 17 00:00:00 2001 From: ericvergnaud Date: Tue, 17 Jan 2023 00:03:08 +0100 Subject: [PATCH] Javascript fix missing export (#4076) * fix missing APIs * more missing APIs Signed-off-by: Eric Vergnaud * bump beta number * add missing export * bump package version Signed-off-by: Eric Vergnaud --- runtime/JavaScript/package.json | 2 +- runtime/JavaScript/src/antlr4/index.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/runtime/JavaScript/package.json b/runtime/JavaScript/package.json index 54c35483ae..04bec6730d 100644 --- a/runtime/JavaScript/package.json +++ b/runtime/JavaScript/package.json @@ -1,6 +1,6 @@ { "name": "antlr4", - "version": "4.12.0-beta.3", + "version": "4.12.0-beta.4", "type": "module", "description": "JavaScript runtime for ANTLR4", "main": "dist/antlr4.js", diff --git a/runtime/JavaScript/src/antlr4/index.js b/runtime/JavaScript/src/antlr4/index.js index 458c6be1db..b61df15cd1 100644 --- a/runtime/JavaScript/src/antlr4/index.js +++ b/runtime/JavaScript/src/antlr4/index.js @@ -37,6 +37,7 @@ import BailErrorStrategy from "./error/BailErrorStrategy.js"; import Interval from './misc/Interval.js'; import IntervalSet from './misc/IntervalSet.js'; import ParseTreeListener from "./tree/ParseTreeListener.js"; +import ParseTreeVisitor from "./tree/ParseTreeVisitor.js"; import ParseTreeWalker from "./tree/ParseTreeWalker.js"; import ErrorListener from "./error/ErrorListener.js" import DiagnosticErrorListener from "./error/DiagnosticErrorListener.js" @@ -52,7 +53,7 @@ export default { export { Token, CommonToken, CharStreams, CharStream, InputStream, FileStream, CommonTokenStream, Lexer, Parser, RuleNode, TerminalNode, ParseTreeWalker, RuleContext, ParserRuleContext, Interval, IntervalSet, - PredictionMode, LL1Analyzer, ParseTreeListener, ATN, ATNDeserializer, PredictionContextCache, LexerATNSimulator, ParserATNSimulator, DFA, + PredictionMode, LL1Analyzer, ParseTreeListener, ParseTreeVisitor, ATN, ATNDeserializer, PredictionContextCache, LexerATNSimulator, ParserATNSimulator, DFA, RecognitionException, NoViableAltException, FailedPredicateException, ErrorListener, DiagnosticErrorListener, BailErrorStrategy, arrayToString } @@ -61,4 +62,4 @@ export { // need to import unused to force loading import StringHashCode from './utils/stringHashCode.js'; import CodePointAt from './polyfills/codepointat.js'; -import FromCodePoint from './polyfills/fromcodepoint.js'; \ No newline at end of file +import FromCodePoint from './polyfills/fromcodepoint.js';