Skip to content

Commit

Permalink
Javascript fix missing export (#4076)
Browse files Browse the repository at this point in the history
* fix missing APIs

* more missing APIs

Signed-off-by: Eric Vergnaud <eric.vergnaud@wanadoo.fr>

* bump beta number

* add missing export

* bump package version

Signed-off-by: Eric Vergnaud <eric.vergnaud@wanadoo.fr>
  • Loading branch information
ericvergnaud authored Jan 16, 2023
1 parent 17fa1af commit cc54283
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/JavaScript/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 3 additions & 2 deletions runtime/JavaScript/src/antlr4/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
}
Expand All @@ -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';
import FromCodePoint from './polyfills/fromcodepoint.js';

0 comments on commit cc54283

Please sign in to comment.