Skip to content

Commit

Permalink
Export DefaultErrorStrategy (#4278)
Browse files Browse the repository at this point in the history
Signed-off-by: hdpnguyen <hieu.dac.phuong.nguyen@mgm-tp.com>
Co-authored-by: hdpnguyen <hieu.dac.phuong.nguyen@mgm-tp.com>
  • Loading branch information
hieunguyen2211 and hdpnguyen authored Sep 5, 2023
1 parent 475d790 commit 200e10c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export declare class DefaultErrorStrategy implements ErrorStrategy {

sync(recognizer: Parser): void;

inErrorRecoveryMode(recognizer: Parser): void;
inErrorRecoveryMode(recognizer: Parser): boolean;

beginErrorCondition(recognizer: Parser): void;

Expand Down
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 @@ -34,6 +34,7 @@ import RecognitionException from "./error/RecognitionException.js";
import FailedPredicateException from "./error/FailedPredicateException.js";
import NoViableAltException from "./error/NoViableAltException.js";
import BailErrorStrategy from "./error/BailErrorStrategy.js";
import DefaultErrorStrategy from "./error/DefaultErrorStrategy.js";
import Interval from './misc/Interval.js';
import IntervalSet from './misc/IntervalSet.js';
import ParseTreeListener from "./tree/ParseTreeListener.js";
Expand All @@ -55,6 +56,6 @@ export {
Token, CommonToken, CharStreams, CharStream, InputStream, FileStream, CommonTokenStream, Lexer, Parser,
RuleNode, TerminalNode, ParseTreeWalker, RuleContext, ParserRuleContext, Interval, IntervalSet,
PredictionMode, LL1Analyzer, ParseTreeListener, ParseTreeVisitor, ATN, ATNDeserializer, PredictionContextCache, LexerATNSimulator, ParserATNSimulator, DFA,
RecognitionException, NoViableAltException, FailedPredicateException, ErrorListener, DiagnosticErrorListener, BailErrorStrategy,
RecognitionException, NoViableAltException, FailedPredicateException, ErrorListener, DiagnosticErrorListener, BailErrorStrategy, DefaultErrorStrategy,
arrayToString
}
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 @@ -33,6 +33,7 @@ import RecognitionException from "./error/RecognitionException.js";
import FailedPredicateException from "./error/FailedPredicateException.js";
import NoViableAltException from "./error/NoViableAltException.js";
import BailErrorStrategy from "./error/BailErrorStrategy.js";
import DefaultErrorStrategy from "./error/DefaultErrorStrategy.js";
import Interval from './misc/Interval.js';
import IntervalSet from './misc/IntervalSet.js';
import ParseTreeListener from "./tree/ParseTreeListener.js";
Expand All @@ -54,6 +55,6 @@ export {
Token, CommonToken, CharStreams, CharStream, InputStream, CommonTokenStream, Lexer, Parser,
RuleNode, TerminalNode, ParseTreeWalker, RuleContext, ParserRuleContext, Interval, IntervalSet,
PredictionMode, LL1Analyzer, ParseTreeListener, ParseTreeVisitor, ATN, ATNDeserializer, PredictionContextCache, LexerATNSimulator, ParserATNSimulator, DFA,
RecognitionException, NoViableAltException, FailedPredicateException, ErrorListener, DiagnosticErrorListener, BailErrorStrategy,
RecognitionException, NoViableAltException, FailedPredicateException, ErrorListener, DiagnosticErrorListener, BailErrorStrategy, DefaultErrorStrategy,
arrayToString
}

0 comments on commit 200e10c

Please sign in to comment.