@opra/client 0.8.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/714.min.cjs +1 -1
- package/cjs/antlr4ts.min.cjs +1 -1
- package/cjs/main.min.cjs +1 -1
- package/cjs/opra-common.min.cjs +1 -1
- package/cjs/vendors.min.cjs +1 -1
- package/esm/714.min.mjs +1 -1
- package/esm/antlr4ts.min.mjs +1 -1
- package/esm/main.min.mjs +1 -1
- package/esm/opra-common.min.mjs +1 -1
- package/esm/vendors.min.mjs +1 -1
- package/package.json +23 -15
- package/typings/antlr4ts/ANTLRErrorListener.d.ts +43 -0
- package/typings/antlr4ts/ANTLRErrorStrategy.d.ts +109 -0
- package/typings/antlr4ts/ANTLRInputStream.d.ts +51 -0
- package/typings/antlr4ts/BailErrorStrategy.d.ts +48 -0
- package/typings/antlr4ts/BufferedTokenStream.d.ts +143 -0
- package/typings/antlr4ts/CharStream.d.ts +26 -0
- package/typings/antlr4ts/CharStreams.d.ts +54 -0
- package/typings/antlr4ts/CodePointBuffer.d.ts +40 -0
- package/typings/antlr4ts/CodePointCharStream.d.ts +45 -0
- package/typings/antlr4ts/CommonToken.d.ts +116 -0
- package/typings/antlr4ts/CommonTokenFactory.d.ts +53 -0
- package/typings/antlr4ts/CommonTokenStream.d.ts +52 -0
- package/typings/antlr4ts/ConsoleErrorListener.d.ts +29 -0
- package/typings/antlr4ts/Decorators.d.ts +8 -0
- package/typings/antlr4ts/DefaultErrorStrategy.d.ts +347 -0
- package/typings/antlr4ts/Dependents.d.ts +69 -0
- package/typings/antlr4ts/DiagnosticErrorListener.d.ts +60 -0
- package/typings/antlr4ts/FailedPredicateException.d.ts +21 -0
- package/typings/antlr4ts/InputMismatchException.d.ts +14 -0
- package/typings/antlr4ts/IntStream.d.ts +197 -0
- package/typings/antlr4ts/InterpreterRuleContext.d.ts +33 -0
- package/typings/antlr4ts/Lexer.d.ts +141 -0
- package/typings/antlr4ts/LexerInterpreter.d.ts +23 -0
- package/typings/antlr4ts/LexerNoViableAltException.d.ts +19 -0
- package/typings/antlr4ts/ListTokenSource.d.ts +86 -0
- package/typings/antlr4ts/NoViableAltException.d.ts +30 -0
- package/typings/antlr4ts/Parser.d.ts +372 -0
- package/typings/antlr4ts/ParserErrorListener.d.ts +112 -0
- package/typings/antlr4ts/ParserInterpreter.d.ts +151 -0
- package/typings/antlr4ts/ParserRuleContext.d.ts +169 -0
- package/typings/antlr4ts/ProxyErrorListener.d.ts +20 -0
- package/typings/antlr4ts/ProxyParserErrorListener.d.ts +21 -0
- package/typings/antlr4ts/RecognitionException.d.ts +87 -0
- package/typings/antlr4ts/Recognizer.d.ts +101 -0
- package/typings/antlr4ts/RuleContext.d.ts +124 -0
- package/typings/antlr4ts/RuleContextWithAltNum.d.ts +22 -0
- package/typings/antlr4ts/RuleDependency.d.ts +32 -0
- package/typings/antlr4ts/RuleVersion.d.ts +11 -0
- package/typings/antlr4ts/Token.d.ts +83 -0
- package/typings/antlr4ts/TokenFactory.d.ts +23 -0
- package/typings/antlr4ts/TokenSource.d.ts +67 -0
- package/typings/antlr4ts/TokenStream.d.ts +145 -0
- package/typings/antlr4ts/TokenStreamRewriter.d.ts +216 -0
- package/typings/antlr4ts/Vocabulary.d.ts +117 -0
- package/typings/antlr4ts/VocabularyImpl.d.ts +47 -0
- package/typings/antlr4ts/WritableToken.d.ts +13 -0
- package/typings/antlr4ts/atn/ATN.d.ts +123 -0
- package/typings/antlr4ts/atn/ATNConfig.d.ts +140 -0
- package/typings/antlr4ts/atn/ATNConfigSet.d.ts +113 -0
- package/typings/antlr4ts/atn/ATNDeserializationOptions.d.ts +26 -0
- package/typings/antlr4ts/atn/ATNDeserializer.d.ts +86 -0
- package/typings/antlr4ts/atn/ATNSimulator.d.ts +28 -0
- package/typings/antlr4ts/atn/ATNState.d.ts +111 -0
- package/typings/antlr4ts/atn/ATNStateType.d.ts +19 -0
- package/typings/antlr4ts/atn/ATNType.d.ts +19 -0
- package/typings/antlr4ts/atn/AbstractPredicateTransition.d.ts +13 -0
- package/typings/antlr4ts/atn/ActionTransition.d.ts +17 -0
- package/typings/antlr4ts/atn/AmbiguityInfo.d.ts +60 -0
- package/typings/antlr4ts/atn/AtomTransition.d.ts +18 -0
- package/typings/antlr4ts/atn/BasicBlockStartState.d.ts +13 -0
- package/typings/antlr4ts/atn/BasicState.d.ts +13 -0
- package/typings/antlr4ts/atn/BlockEndState.d.ts +12 -0
- package/typings/antlr4ts/atn/BlockStartState.d.ts +10 -0
- package/typings/antlr4ts/atn/CodePointTransitions.d.ts +27 -0
- package/typings/antlr4ts/atn/ConflictInfo.d.ts +35 -0
- package/typings/antlr4ts/atn/ContextSensitivityInfo.d.ts +39 -0
- package/typings/antlr4ts/atn/DecisionEventInfo.d.ts +54 -0
- package/typings/antlr4ts/atn/DecisionInfo.d.ts +201 -0
- package/typings/antlr4ts/atn/DecisionState.d.ts +10 -0
- package/typings/antlr4ts/atn/EpsilonTransition.d.ts +24 -0
- package/typings/antlr4ts/atn/ErrorInfo.d.ts +32 -0
- package/typings/antlr4ts/atn/InvalidState.d.ts +13 -0
- package/typings/antlr4ts/atn/LL1Analyzer.d.ts +98 -0
- package/typings/antlr4ts/atn/LexerATNSimulator.d.ts +153 -0
- package/typings/antlr4ts/atn/LexerAction.d.ts +47 -0
- package/typings/antlr4ts/atn/LexerActionExecutor.d.ts +104 -0
- package/typings/antlr4ts/atn/LexerActionType.d.ts +44 -0
- package/typings/antlr4ts/atn/LexerChannelAction.d.ts +48 -0
- package/typings/antlr4ts/atn/LexerCustomAction.d.ts +73 -0
- package/typings/antlr4ts/atn/LexerIndexedCustomAction.d.ts +74 -0
- package/typings/antlr4ts/atn/LexerModeAction.d.ts +48 -0
- package/typings/antlr4ts/atn/LexerMoreAction.d.ts +47 -0
- package/typings/antlr4ts/atn/LexerPopModeAction.d.ts +47 -0
- package/typings/antlr4ts/atn/LexerPushModeAction.d.ts +48 -0
- package/typings/antlr4ts/atn/LexerSkipAction.d.ts +47 -0
- package/typings/antlr4ts/atn/LexerTypeAction.d.ts +47 -0
- package/typings/antlr4ts/atn/LookaheadEventInfo.d.ts +37 -0
- package/typings/antlr4ts/atn/LoopEndState.d.ts +11 -0
- package/typings/antlr4ts/atn/NotSetTransition.d.ts +14 -0
- package/typings/antlr4ts/atn/OrderedATNConfigSet.d.ts +23 -0
- package/typings/antlr4ts/atn/ParseInfo.d.ts +79 -0
- package/typings/antlr4ts/atn/ParserATNSimulator.d.ts +567 -0
- package/typings/antlr4ts/atn/PlusBlockStartState.d.ts +16 -0
- package/typings/antlr4ts/atn/PlusLoopbackState.d.ts +12 -0
- package/typings/antlr4ts/atn/PrecedencePredicateTransition.d.ts +21 -0
- package/typings/antlr4ts/atn/PredicateEvalInfo.d.ts +54 -0
- package/typings/antlr4ts/atn/PredicateTransition.d.ts +25 -0
- package/typings/antlr4ts/atn/PredictionContext.d.ts +89 -0
- package/typings/antlr4ts/atn/PredictionContextCache.d.ts +40 -0
- package/typings/antlr4ts/atn/PredictionMode.d.ts +89 -0
- package/typings/antlr4ts/atn/ProfilingATNSimulator.d.ts +55 -0
- package/typings/antlr4ts/atn/RangeTransition.d.ts +17 -0
- package/typings/antlr4ts/atn/RuleStartState.d.ts +13 -0
- package/typings/antlr4ts/atn/RuleStopState.d.ts +15 -0
- package/typings/antlr4ts/atn/RuleTransition.d.ts +22 -0
- package/typings/antlr4ts/atn/SemanticContext.d.ts +143 -0
- package/typings/antlr4ts/atn/SetTransition.d.ts +17 -0
- package/typings/antlr4ts/atn/SimulatorState.d.ts +17 -0
- package/typings/antlr4ts/atn/StarBlockStartState.d.ts +10 -0
- package/typings/antlr4ts/atn/StarLoopEntryState.d.ts +37 -0
- package/typings/antlr4ts/atn/StarLoopbackState.d.ts +11 -0
- package/typings/antlr4ts/atn/TokensStartState.d.ts +10 -0
- package/typings/antlr4ts/atn/Transition.d.ts +38 -0
- package/typings/antlr4ts/atn/TransitionType.d.ts +16 -0
- package/typings/antlr4ts/atn/WildcardTransition.d.ts +13 -0
- package/typings/antlr4ts/atn/index.d.ts +73 -0
- package/typings/antlr4ts/dfa/AcceptStateInfo.d.ts +33 -0
- package/typings/antlr4ts/dfa/DFA.d.ts +94 -0
- package/typings/antlr4ts/dfa/DFASerializer.d.ts +23 -0
- package/typings/antlr4ts/dfa/DFAState.d.ts +95 -0
- package/typings/antlr4ts/dfa/LexerDFASerializer.d.ts +10 -0
- package/typings/antlr4ts/dfa/index.d.ts +9 -0
- package/typings/antlr4ts/index.d.ts +49 -0
- package/typings/antlr4ts/misc/Args.d.ts +13 -0
- package/typings/antlr4ts/misc/Array2DHashMap.d.ts +20 -0
- package/typings/antlr4ts/misc/Array2DHashSet.d.ts +62 -0
- package/typings/antlr4ts/misc/ArrayEqualityComparator.d.ts +32 -0
- package/typings/antlr4ts/misc/Arrays.d.ts +18 -0
- package/typings/antlr4ts/misc/BitSet.d.ts +268 -0
- package/typings/antlr4ts/misc/Character.d.ts +7 -0
- package/typings/antlr4ts/misc/DefaultEqualityComparator.d.ts +31 -0
- package/typings/antlr4ts/misc/EqualityComparator.d.ts +29 -0
- package/typings/antlr4ts/misc/IntSet.d.ts +129 -0
- package/typings/antlr4ts/misc/IntegerList.d.ts +69 -0
- package/typings/antlr4ts/misc/IntegerStack.d.ts +15 -0
- package/typings/antlr4ts/misc/InterpreterDataReader.d.ts +39 -0
- package/typings/antlr4ts/misc/Interval.d.ts +57 -0
- package/typings/antlr4ts/misc/IntervalSet.d.ts +96 -0
- package/typings/antlr4ts/misc/MultiMap.d.ts +9 -0
- package/typings/antlr4ts/misc/MurmurHash.d.ts +45 -0
- package/typings/antlr4ts/misc/ObjectEqualityComparator.d.ts +32 -0
- package/typings/antlr4ts/misc/ParseCancellationException.d.ts +18 -0
- package/typings/antlr4ts/misc/Stubs.d.ts +31 -0
- package/typings/antlr4ts/misc/UUID.d.ts +13 -0
- package/typings/antlr4ts/misc/Utils.d.ts +15 -0
- package/typings/antlr4ts/misc/index.d.ts +25 -0
- package/typings/antlr4ts/tree/AbstractParseTreeVisitor.d.ts +103 -0
- package/typings/antlr4ts/tree/ErrorNode.d.ts +17 -0
- package/typings/antlr4ts/tree/ParseTree.d.ts +36 -0
- package/typings/antlr4ts/tree/ParseTreeListener.d.ts +26 -0
- package/typings/antlr4ts/tree/ParseTreeProperty.d.ts +28 -0
- package/typings/antlr4ts/tree/ParseTreeVisitor.d.ts +48 -0
- package/typings/antlr4ts/tree/ParseTreeWalker.d.ts +35 -0
- package/typings/antlr4ts/tree/RuleNode.d.ts +21 -0
- package/typings/antlr4ts/tree/SyntaxTree.d.ts +29 -0
- package/typings/antlr4ts/tree/TerminalNode.d.ts +27 -0
- package/typings/antlr4ts/tree/Tree.d.ts +36 -0
- package/typings/antlr4ts/tree/Trees.d.ts +75 -0
- package/typings/antlr4ts/tree/index.d.ts +16 -0
- package/typings/antlr4ts/tree/pattern/Chunk.d.ts +17 -0
- package/typings/antlr4ts/tree/pattern/ParseTreeMatch.d.ts +124 -0
- package/typings/antlr4ts/tree/pattern/ParseTreePattern.d.ts +98 -0
- package/typings/antlr4ts/tree/pattern/ParseTreePatternMatcher.d.ts +166 -0
- package/typings/antlr4ts/tree/pattern/RuleTagToken.d.ts +122 -0
- package/typings/antlr4ts/tree/pattern/TagChunk.d.ts +59 -0
- package/typings/antlr4ts/tree/pattern/TextChunk.d.ts +35 -0
- package/typings/antlr4ts/tree/pattern/TokenTagToken.d.ts +56 -0
- package/typings/antlr4ts/tree/pattern/index.d.ts +9 -0
- package/typings/antlr4ts/tree/xpath/XPath.d.ts +66 -0
- package/typings/antlr4ts/tree/xpath/XPathElement.d.ts +19 -0
- package/typings/antlr4ts/tree/xpath/XPathLexer.d.ts +36 -0
- package/typings/antlr4ts/tree/xpath/XPathLexerErrorListener.d.ts +10 -0
- package/typings/antlr4ts/tree/xpath/XPathRuleAnywhereElement.d.ts +14 -0
- package/typings/antlr4ts/tree/xpath/XPathRuleElement.d.ts +11 -0
- package/typings/antlr4ts/tree/xpath/XPathTokenAnywhereElement.d.ts +11 -0
- package/typings/antlr4ts/tree/xpath/XPathTokenElement.d.ts +11 -0
- package/typings/antlr4ts/tree/xpath/XPathWildcardAnywhereElement.d.ts +10 -0
- package/typings/antlr4ts/tree/xpath/XPathWildcardElement.d.ts +10 -0
- package/typings/antlr4ts/tree/xpath/index.d.ts +14 -0
- package/typings/common/filter/antlr/OpraFilterLexer.d.ts +4 -4
- package/typings/common/filter/antlr/OpraFilterParser.d.ts +8 -8
- package/typings/common/filter/antlr/OpraFilterVisitor.d.ts +1 -1
- package/typings/common/filter/error-listener.d.ts +2 -2
- package/typings/common/filter/errors.d.ts +2 -2
- package/typings/common/filter/filter-tree-visitor.d.ts +1 -1
- package/typings/common/filter/parse.d.ts +1 -1
- package/umd/714.min.cjs +1 -1
- package/umd/antlr4ts.min.cjs +1 -1
- package/umd/main.min.cjs +1 -1
- package/umd/opra-common.min.cjs +1 -1
- package/umd/vendors.min.cjs +1 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
+
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
+
*/
|
|
5
|
+
import { Lexer } from "../Lexer";
|
|
6
|
+
import { LexerAction } from "./LexerAction";
|
|
7
|
+
import { LexerActionType } from "./LexerActionType";
|
|
8
|
+
/**
|
|
9
|
+
* Implements the `mode` lexer action by calling {@link Lexer#mode} with
|
|
10
|
+
* the assigned mode.
|
|
11
|
+
*
|
|
12
|
+
* @author Sam Harwell
|
|
13
|
+
* @since 4.2
|
|
14
|
+
*/
|
|
15
|
+
export declare class LexerModeAction implements LexerAction {
|
|
16
|
+
private readonly _mode;
|
|
17
|
+
/**
|
|
18
|
+
* Constructs a new `mode` action with the specified mode value.
|
|
19
|
+
* @param mode The mode value to pass to {@link Lexer#mode}.
|
|
20
|
+
*/
|
|
21
|
+
constructor(mode: number);
|
|
22
|
+
/**
|
|
23
|
+
* Get the lexer mode this action should transition the lexer to.
|
|
24
|
+
*
|
|
25
|
+
* @returns The lexer mode for this `mode` command.
|
|
26
|
+
*/
|
|
27
|
+
get mode(): number;
|
|
28
|
+
/**
|
|
29
|
+
* {@inheritDoc}
|
|
30
|
+
* @returns This method returns {@link LexerActionType#MODE}.
|
|
31
|
+
*/
|
|
32
|
+
get actionType(): LexerActionType;
|
|
33
|
+
/**
|
|
34
|
+
* {@inheritDoc}
|
|
35
|
+
* @returns This method returns `false`.
|
|
36
|
+
*/
|
|
37
|
+
get isPositionDependent(): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* {@inheritDoc}
|
|
40
|
+
*
|
|
41
|
+
* This action is implemented by calling {@link Lexer#mode} with the
|
|
42
|
+
* value provided by {@link #getMode}.
|
|
43
|
+
*/
|
|
44
|
+
execute(lexer: Lexer): void;
|
|
45
|
+
hashCode(): number;
|
|
46
|
+
equals(obj: any): boolean;
|
|
47
|
+
toString(): string;
|
|
48
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
+
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
+
*/
|
|
5
|
+
import { Lexer } from "../Lexer";
|
|
6
|
+
import { LexerAction } from "./LexerAction";
|
|
7
|
+
import { LexerActionType } from "./LexerActionType";
|
|
8
|
+
/**
|
|
9
|
+
* Implements the `more` lexer action by calling {@link Lexer#more}.
|
|
10
|
+
*
|
|
11
|
+
* The `more` command does not have any parameters, so this action is
|
|
12
|
+
* implemented as a singleton instance exposed by {@link #INSTANCE}.
|
|
13
|
+
*
|
|
14
|
+
* @author Sam Harwell
|
|
15
|
+
* @since 4.2
|
|
16
|
+
*/
|
|
17
|
+
export declare class LexerMoreAction implements LexerAction {
|
|
18
|
+
/**
|
|
19
|
+
* Constructs the singleton instance of the lexer `more` command.
|
|
20
|
+
*/
|
|
21
|
+
constructor();
|
|
22
|
+
/**
|
|
23
|
+
* {@inheritDoc}
|
|
24
|
+
* @returns This method returns {@link LexerActionType#MORE}.
|
|
25
|
+
*/
|
|
26
|
+
get actionType(): LexerActionType;
|
|
27
|
+
/**
|
|
28
|
+
* {@inheritDoc}
|
|
29
|
+
* @returns This method returns `false`.
|
|
30
|
+
*/
|
|
31
|
+
get isPositionDependent(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* {@inheritDoc}
|
|
34
|
+
*
|
|
35
|
+
* This action is implemented by calling {@link Lexer#more}.
|
|
36
|
+
*/
|
|
37
|
+
execute(lexer: Lexer): void;
|
|
38
|
+
hashCode(): number;
|
|
39
|
+
equals(obj: any): boolean;
|
|
40
|
+
toString(): string;
|
|
41
|
+
}
|
|
42
|
+
export declare namespace LexerMoreAction {
|
|
43
|
+
/**
|
|
44
|
+
* Provides a singleton instance of this parameterless lexer action.
|
|
45
|
+
*/
|
|
46
|
+
const INSTANCE: LexerMoreAction;
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
+
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
+
*/
|
|
5
|
+
import { Lexer } from "../Lexer";
|
|
6
|
+
import { LexerAction } from "./LexerAction";
|
|
7
|
+
import { LexerActionType } from "./LexerActionType";
|
|
8
|
+
/**
|
|
9
|
+
* Implements the `popMode` lexer action by calling {@link Lexer#popMode}.
|
|
10
|
+
*
|
|
11
|
+
* The `popMode` command does not have any parameters, so this action is
|
|
12
|
+
* implemented as a singleton instance exposed by {@link #INSTANCE}.
|
|
13
|
+
*
|
|
14
|
+
* @author Sam Harwell
|
|
15
|
+
* @since 4.2
|
|
16
|
+
*/
|
|
17
|
+
export declare class LexerPopModeAction implements LexerAction {
|
|
18
|
+
/**
|
|
19
|
+
* Constructs the singleton instance of the lexer `popMode` command.
|
|
20
|
+
*/
|
|
21
|
+
constructor();
|
|
22
|
+
/**
|
|
23
|
+
* {@inheritDoc}
|
|
24
|
+
* @returns This method returns {@link LexerActionType#POP_MODE}.
|
|
25
|
+
*/
|
|
26
|
+
get actionType(): LexerActionType;
|
|
27
|
+
/**
|
|
28
|
+
* {@inheritDoc}
|
|
29
|
+
* @returns This method returns `false`.
|
|
30
|
+
*/
|
|
31
|
+
get isPositionDependent(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* {@inheritDoc}
|
|
34
|
+
*
|
|
35
|
+
* This action is implemented by calling {@link Lexer#popMode}.
|
|
36
|
+
*/
|
|
37
|
+
execute(lexer: Lexer): void;
|
|
38
|
+
hashCode(): number;
|
|
39
|
+
equals(obj: any): boolean;
|
|
40
|
+
toString(): string;
|
|
41
|
+
}
|
|
42
|
+
export declare namespace LexerPopModeAction {
|
|
43
|
+
/**
|
|
44
|
+
* Provides a singleton instance of this parameterless lexer action.
|
|
45
|
+
*/
|
|
46
|
+
const INSTANCE: LexerPopModeAction;
|
|
47
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
+
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
+
*/
|
|
5
|
+
import { Lexer } from "../Lexer";
|
|
6
|
+
import { LexerAction } from "./LexerAction";
|
|
7
|
+
import { LexerActionType } from "./LexerActionType";
|
|
8
|
+
/**
|
|
9
|
+
* Implements the `pushMode` lexer action by calling
|
|
10
|
+
* {@link Lexer#pushMode} with the assigned mode.
|
|
11
|
+
*
|
|
12
|
+
* @author Sam Harwell
|
|
13
|
+
* @since 4.2
|
|
14
|
+
*/
|
|
15
|
+
export declare class LexerPushModeAction implements LexerAction {
|
|
16
|
+
private readonly _mode;
|
|
17
|
+
/**
|
|
18
|
+
* Constructs a new `pushMode` action with the specified mode value.
|
|
19
|
+
* @param mode The mode value to pass to {@link Lexer#pushMode}.
|
|
20
|
+
*/
|
|
21
|
+
constructor(mode: number);
|
|
22
|
+
/**
|
|
23
|
+
* Get the lexer mode this action should transition the lexer to.
|
|
24
|
+
*
|
|
25
|
+
* @returns The lexer mode for this `pushMode` command.
|
|
26
|
+
*/
|
|
27
|
+
get mode(): number;
|
|
28
|
+
/**
|
|
29
|
+
* {@inheritDoc}
|
|
30
|
+
* @returns This method returns {@link LexerActionType#PUSH_MODE}.
|
|
31
|
+
*/
|
|
32
|
+
get actionType(): LexerActionType;
|
|
33
|
+
/**
|
|
34
|
+
* {@inheritDoc}
|
|
35
|
+
* @returns This method returns `false`.
|
|
36
|
+
*/
|
|
37
|
+
get isPositionDependent(): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* {@inheritDoc}
|
|
40
|
+
*
|
|
41
|
+
* This action is implemented by calling {@link Lexer#pushMode} with the
|
|
42
|
+
* value provided by {@link #getMode}.
|
|
43
|
+
*/
|
|
44
|
+
execute(lexer: Lexer): void;
|
|
45
|
+
hashCode(): number;
|
|
46
|
+
equals(obj: any): boolean;
|
|
47
|
+
toString(): string;
|
|
48
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
+
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
+
*/
|
|
5
|
+
import { Lexer } from "../Lexer";
|
|
6
|
+
import { LexerAction } from "./LexerAction";
|
|
7
|
+
import { LexerActionType } from "./LexerActionType";
|
|
8
|
+
/**
|
|
9
|
+
* Implements the `skip` lexer action by calling {@link Lexer#skip}.
|
|
10
|
+
*
|
|
11
|
+
* The `skip` command does not have any parameters, so this action is
|
|
12
|
+
* implemented as a singleton instance exposed by {@link #INSTANCE}.
|
|
13
|
+
*
|
|
14
|
+
* @author Sam Harwell
|
|
15
|
+
* @since 4.2
|
|
16
|
+
*/
|
|
17
|
+
export declare class LexerSkipAction implements LexerAction {
|
|
18
|
+
/**
|
|
19
|
+
* Constructs the singleton instance of the lexer `skip` command.
|
|
20
|
+
*/
|
|
21
|
+
constructor();
|
|
22
|
+
/**
|
|
23
|
+
* {@inheritDoc}
|
|
24
|
+
* @returns This method returns {@link LexerActionType#SKIP}.
|
|
25
|
+
*/
|
|
26
|
+
get actionType(): LexerActionType;
|
|
27
|
+
/**
|
|
28
|
+
* {@inheritDoc}
|
|
29
|
+
* @returns This method returns `false`.
|
|
30
|
+
*/
|
|
31
|
+
get isPositionDependent(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* {@inheritDoc}
|
|
34
|
+
*
|
|
35
|
+
* This action is implemented by calling {@link Lexer#skip}.
|
|
36
|
+
*/
|
|
37
|
+
execute(lexer: Lexer): void;
|
|
38
|
+
hashCode(): number;
|
|
39
|
+
equals(obj: any): boolean;
|
|
40
|
+
toString(): string;
|
|
41
|
+
}
|
|
42
|
+
export declare namespace LexerSkipAction {
|
|
43
|
+
/**
|
|
44
|
+
* Provides a singleton instance of this parameterless lexer action.
|
|
45
|
+
*/
|
|
46
|
+
const INSTANCE: LexerSkipAction;
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
+
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
+
*/
|
|
5
|
+
import { Lexer } from "../Lexer";
|
|
6
|
+
import { LexerAction } from "./LexerAction";
|
|
7
|
+
import { LexerActionType } from "./LexerActionType";
|
|
8
|
+
/**
|
|
9
|
+
* Implements the `type` lexer action by setting `Lexer.type`
|
|
10
|
+
* with the assigned type.
|
|
11
|
+
*
|
|
12
|
+
* @author Sam Harwell
|
|
13
|
+
* @since 4.2
|
|
14
|
+
*/
|
|
15
|
+
export declare class LexerTypeAction implements LexerAction {
|
|
16
|
+
private readonly _type;
|
|
17
|
+
/**
|
|
18
|
+
* Constructs a new `type` action with the specified token type value.
|
|
19
|
+
* @param type The type to assign to the token using `Lexer.type`.
|
|
20
|
+
*/
|
|
21
|
+
constructor(type: number);
|
|
22
|
+
/**
|
|
23
|
+
* Gets the type to assign to a token created by the lexer.
|
|
24
|
+
* @returns The type to assign to a token created by the lexer.
|
|
25
|
+
*/
|
|
26
|
+
get type(): number;
|
|
27
|
+
/**
|
|
28
|
+
* {@inheritDoc}
|
|
29
|
+
* @returns This method returns {@link LexerActionType#TYPE}.
|
|
30
|
+
*/
|
|
31
|
+
get actionType(): LexerActionType;
|
|
32
|
+
/**
|
|
33
|
+
* {@inheritDoc}
|
|
34
|
+
* @returns This method returns `false`.
|
|
35
|
+
*/
|
|
36
|
+
get isPositionDependent(): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* {@inheritDoc}
|
|
39
|
+
*
|
|
40
|
+
* This action is implemented by setting `Lexer.type` with the
|
|
41
|
+
* value provided by `type`.
|
|
42
|
+
*/
|
|
43
|
+
execute(lexer: Lexer): void;
|
|
44
|
+
hashCode(): number;
|
|
45
|
+
equals(obj: any): boolean;
|
|
46
|
+
toString(): string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
+
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
+
*/
|
|
5
|
+
import { DecisionEventInfo } from "./DecisionEventInfo";
|
|
6
|
+
import { SimulatorState } from "./SimulatorState";
|
|
7
|
+
import { TokenStream } from "../TokenStream";
|
|
8
|
+
/**
|
|
9
|
+
* This class represents profiling event information for tracking the lookahead
|
|
10
|
+
* depth required in order to make a prediction.
|
|
11
|
+
*
|
|
12
|
+
* @since 4.3
|
|
13
|
+
*/
|
|
14
|
+
export declare class LookaheadEventInfo extends DecisionEventInfo {
|
|
15
|
+
/** The alternative chosen by adaptivePredict(), not necessarily
|
|
16
|
+
* the outermost alt shown for a rule; left-recursive rules have
|
|
17
|
+
* user-level alts that differ from the rewritten rule with a (...) block
|
|
18
|
+
* and a (..)* loop.
|
|
19
|
+
*/
|
|
20
|
+
predictedAlt: number;
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new instance of the {@link LookaheadEventInfo} class with
|
|
23
|
+
* the specified detailed lookahead information.
|
|
24
|
+
*
|
|
25
|
+
* @param decision The decision number
|
|
26
|
+
* @param state The final simulator state containing the necessary
|
|
27
|
+
* information to determine the result of a prediction, or `undefined` if
|
|
28
|
+
* the final state is not available
|
|
29
|
+
* @param input The input token stream
|
|
30
|
+
* @param startIndex The start index for the current prediction
|
|
31
|
+
* @param stopIndex The index at which the prediction was finally made
|
|
32
|
+
* @param fullCtx `true` if the current lookahead is part of an LL
|
|
33
|
+
* prediction; otherwise, `false` if the current lookahead is part of
|
|
34
|
+
* an SLL prediction
|
|
35
|
+
*/
|
|
36
|
+
constructor(decision: number, state: SimulatorState | undefined, predictedAlt: number, input: TokenStream, startIndex: number, stopIndex: number, fullCtx: boolean);
|
|
37
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
+
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
+
*/
|
|
5
|
+
import { ATNState } from "./ATNState";
|
|
6
|
+
import { ATNStateType } from "./ATNStateType";
|
|
7
|
+
/** Mark the end of a * or + loop. */
|
|
8
|
+
export declare class LoopEndState extends ATNState {
|
|
9
|
+
loopBackState: ATNState;
|
|
10
|
+
get stateType(): ATNStateType;
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
+
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
+
*/
|
|
5
|
+
import { ATNState } from "./ATNState";
|
|
6
|
+
import { IntervalSet } from "../misc/IntervalSet";
|
|
7
|
+
import { SetTransition } from "./SetTransition";
|
|
8
|
+
import { TransitionType } from "./TransitionType";
|
|
9
|
+
export declare class NotSetTransition extends SetTransition {
|
|
10
|
+
constructor(target: ATNState, set: IntervalSet);
|
|
11
|
+
get serializationType(): TransitionType;
|
|
12
|
+
matches(symbol: number, minVocabSymbol: number, maxVocabSymbol: number): boolean;
|
|
13
|
+
toString(): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
+
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
+
*/
|
|
5
|
+
import { ATNConfig } from "./ATNConfig";
|
|
6
|
+
import { ATNConfigSet } from "./ATNConfigSet";
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @author Sam Harwell
|
|
10
|
+
*/
|
|
11
|
+
export declare class OrderedATNConfigSet extends ATNConfigSet {
|
|
12
|
+
constructor();
|
|
13
|
+
constructor(set: ATNConfigSet, readonly: boolean);
|
|
14
|
+
clone(readonly: boolean): ATNConfigSet;
|
|
15
|
+
protected getKey(e: ATNConfig): {
|
|
16
|
+
state: number;
|
|
17
|
+
alt: number;
|
|
18
|
+
};
|
|
19
|
+
protected canMerge(left: ATNConfig, leftKey: {
|
|
20
|
+
state: number;
|
|
21
|
+
alt: number;
|
|
22
|
+
}, right: ATNConfig): boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
+
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
+
*/
|
|
5
|
+
import { DecisionInfo } from "./DecisionInfo";
|
|
6
|
+
import { ProfilingATNSimulator } from "./ProfilingATNSimulator";
|
|
7
|
+
/**
|
|
8
|
+
* This class provides access to specific and aggregate statistics gathered
|
|
9
|
+
* during profiling of a parser.
|
|
10
|
+
*
|
|
11
|
+
* @since 4.3
|
|
12
|
+
*/
|
|
13
|
+
export declare class ParseInfo {
|
|
14
|
+
protected atnSimulator: ProfilingATNSimulator;
|
|
15
|
+
constructor(atnSimulator: ProfilingATNSimulator);
|
|
16
|
+
/**
|
|
17
|
+
* Gets an array of {@link DecisionInfo} instances containing the profiling
|
|
18
|
+
* information gathered for each decision in the ATN.
|
|
19
|
+
*
|
|
20
|
+
* @returns An array of {@link DecisionInfo} instances, indexed by decision
|
|
21
|
+
* number.
|
|
22
|
+
*/
|
|
23
|
+
getDecisionInfo(): DecisionInfo[];
|
|
24
|
+
/**
|
|
25
|
+
* Gets the decision numbers for decisions that required one or more
|
|
26
|
+
* full-context predictions during parsing. These are decisions for which
|
|
27
|
+
* {@link DecisionInfo#LL_Fallback} is non-zero.
|
|
28
|
+
*
|
|
29
|
+
* @returns A list of decision numbers which required one or more
|
|
30
|
+
* full-context predictions during parsing.
|
|
31
|
+
*/
|
|
32
|
+
getLLDecisions(): number[];
|
|
33
|
+
/**
|
|
34
|
+
* Gets the total time spent during prediction across all decisions made
|
|
35
|
+
* during parsing. This value is the sum of
|
|
36
|
+
* {@link DecisionInfo#timeInPrediction} for all decisions.
|
|
37
|
+
*/
|
|
38
|
+
getTotalTimeInPrediction(): number;
|
|
39
|
+
/**
|
|
40
|
+
* Gets the total number of SLL lookahead operations across all decisions
|
|
41
|
+
* made during parsing. This value is the sum of
|
|
42
|
+
* {@link DecisionInfo#SLL_TotalLook} for all decisions.
|
|
43
|
+
*/
|
|
44
|
+
getTotalSLLLookaheadOps(): number;
|
|
45
|
+
/**
|
|
46
|
+
* Gets the total number of LL lookahead operations across all decisions
|
|
47
|
+
* made during parsing. This value is the sum of
|
|
48
|
+
* {@link DecisionInfo#LL_TotalLook} for all decisions.
|
|
49
|
+
*/
|
|
50
|
+
getTotalLLLookaheadOps(): number;
|
|
51
|
+
/**
|
|
52
|
+
* Gets the total number of ATN lookahead operations for SLL prediction
|
|
53
|
+
* across all decisions made during parsing.
|
|
54
|
+
*/
|
|
55
|
+
getTotalSLLATNLookaheadOps(): number;
|
|
56
|
+
/**
|
|
57
|
+
* Gets the total number of ATN lookahead operations for LL prediction
|
|
58
|
+
* across all decisions made during parsing.
|
|
59
|
+
*/
|
|
60
|
+
getTotalLLATNLookaheadOps(): number;
|
|
61
|
+
/**
|
|
62
|
+
* Gets the total number of ATN lookahead operations for SLL and LL
|
|
63
|
+
* prediction across all decisions made during parsing.
|
|
64
|
+
*
|
|
65
|
+
* This value is the sum of {@link #getTotalSLLATNLookaheadOps} and
|
|
66
|
+
* {@link #getTotalLLATNLookaheadOps}.
|
|
67
|
+
*/
|
|
68
|
+
getTotalATNLookaheadOps(): number;
|
|
69
|
+
/**
|
|
70
|
+
* Gets the total number of DFA states stored in the DFA cache for all
|
|
71
|
+
* decisions in the ATN.
|
|
72
|
+
*/
|
|
73
|
+
getDFASize(): number;
|
|
74
|
+
/**
|
|
75
|
+
* Gets the total number of DFA states stored in the DFA cache for a
|
|
76
|
+
* particular decision.
|
|
77
|
+
*/
|
|
78
|
+
getDFASize(decision: number): number;
|
|
79
|
+
}
|