@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.
Files changed (202) hide show
  1. package/cjs/714.min.cjs +1 -1
  2. package/cjs/antlr4ts.min.cjs +1 -1
  3. package/cjs/main.min.cjs +1 -1
  4. package/cjs/opra-common.min.cjs +1 -1
  5. package/cjs/vendors.min.cjs +1 -1
  6. package/esm/714.min.mjs +1 -1
  7. package/esm/antlr4ts.min.mjs +1 -1
  8. package/esm/main.min.mjs +1 -1
  9. package/esm/opra-common.min.mjs +1 -1
  10. package/esm/vendors.min.mjs +1 -1
  11. package/package.json +23 -15
  12. package/typings/antlr4ts/ANTLRErrorListener.d.ts +43 -0
  13. package/typings/antlr4ts/ANTLRErrorStrategy.d.ts +109 -0
  14. package/typings/antlr4ts/ANTLRInputStream.d.ts +51 -0
  15. package/typings/antlr4ts/BailErrorStrategy.d.ts +48 -0
  16. package/typings/antlr4ts/BufferedTokenStream.d.ts +143 -0
  17. package/typings/antlr4ts/CharStream.d.ts +26 -0
  18. package/typings/antlr4ts/CharStreams.d.ts +54 -0
  19. package/typings/antlr4ts/CodePointBuffer.d.ts +40 -0
  20. package/typings/antlr4ts/CodePointCharStream.d.ts +45 -0
  21. package/typings/antlr4ts/CommonToken.d.ts +116 -0
  22. package/typings/antlr4ts/CommonTokenFactory.d.ts +53 -0
  23. package/typings/antlr4ts/CommonTokenStream.d.ts +52 -0
  24. package/typings/antlr4ts/ConsoleErrorListener.d.ts +29 -0
  25. package/typings/antlr4ts/Decorators.d.ts +8 -0
  26. package/typings/antlr4ts/DefaultErrorStrategy.d.ts +347 -0
  27. package/typings/antlr4ts/Dependents.d.ts +69 -0
  28. package/typings/antlr4ts/DiagnosticErrorListener.d.ts +60 -0
  29. package/typings/antlr4ts/FailedPredicateException.d.ts +21 -0
  30. package/typings/antlr4ts/InputMismatchException.d.ts +14 -0
  31. package/typings/antlr4ts/IntStream.d.ts +197 -0
  32. package/typings/antlr4ts/InterpreterRuleContext.d.ts +33 -0
  33. package/typings/antlr4ts/Lexer.d.ts +141 -0
  34. package/typings/antlr4ts/LexerInterpreter.d.ts +23 -0
  35. package/typings/antlr4ts/LexerNoViableAltException.d.ts +19 -0
  36. package/typings/antlr4ts/ListTokenSource.d.ts +86 -0
  37. package/typings/antlr4ts/NoViableAltException.d.ts +30 -0
  38. package/typings/antlr4ts/Parser.d.ts +372 -0
  39. package/typings/antlr4ts/ParserErrorListener.d.ts +112 -0
  40. package/typings/antlr4ts/ParserInterpreter.d.ts +151 -0
  41. package/typings/antlr4ts/ParserRuleContext.d.ts +169 -0
  42. package/typings/antlr4ts/ProxyErrorListener.d.ts +20 -0
  43. package/typings/antlr4ts/ProxyParserErrorListener.d.ts +21 -0
  44. package/typings/antlr4ts/RecognitionException.d.ts +87 -0
  45. package/typings/antlr4ts/Recognizer.d.ts +101 -0
  46. package/typings/antlr4ts/RuleContext.d.ts +124 -0
  47. package/typings/antlr4ts/RuleContextWithAltNum.d.ts +22 -0
  48. package/typings/antlr4ts/RuleDependency.d.ts +32 -0
  49. package/typings/antlr4ts/RuleVersion.d.ts +11 -0
  50. package/typings/antlr4ts/Token.d.ts +83 -0
  51. package/typings/antlr4ts/TokenFactory.d.ts +23 -0
  52. package/typings/antlr4ts/TokenSource.d.ts +67 -0
  53. package/typings/antlr4ts/TokenStream.d.ts +145 -0
  54. package/typings/antlr4ts/TokenStreamRewriter.d.ts +216 -0
  55. package/typings/antlr4ts/Vocabulary.d.ts +117 -0
  56. package/typings/antlr4ts/VocabularyImpl.d.ts +47 -0
  57. package/typings/antlr4ts/WritableToken.d.ts +13 -0
  58. package/typings/antlr4ts/atn/ATN.d.ts +123 -0
  59. package/typings/antlr4ts/atn/ATNConfig.d.ts +140 -0
  60. package/typings/antlr4ts/atn/ATNConfigSet.d.ts +113 -0
  61. package/typings/antlr4ts/atn/ATNDeserializationOptions.d.ts +26 -0
  62. package/typings/antlr4ts/atn/ATNDeserializer.d.ts +86 -0
  63. package/typings/antlr4ts/atn/ATNSimulator.d.ts +28 -0
  64. package/typings/antlr4ts/atn/ATNState.d.ts +111 -0
  65. package/typings/antlr4ts/atn/ATNStateType.d.ts +19 -0
  66. package/typings/antlr4ts/atn/ATNType.d.ts +19 -0
  67. package/typings/antlr4ts/atn/AbstractPredicateTransition.d.ts +13 -0
  68. package/typings/antlr4ts/atn/ActionTransition.d.ts +17 -0
  69. package/typings/antlr4ts/atn/AmbiguityInfo.d.ts +60 -0
  70. package/typings/antlr4ts/atn/AtomTransition.d.ts +18 -0
  71. package/typings/antlr4ts/atn/BasicBlockStartState.d.ts +13 -0
  72. package/typings/antlr4ts/atn/BasicState.d.ts +13 -0
  73. package/typings/antlr4ts/atn/BlockEndState.d.ts +12 -0
  74. package/typings/antlr4ts/atn/BlockStartState.d.ts +10 -0
  75. package/typings/antlr4ts/atn/CodePointTransitions.d.ts +27 -0
  76. package/typings/antlr4ts/atn/ConflictInfo.d.ts +35 -0
  77. package/typings/antlr4ts/atn/ContextSensitivityInfo.d.ts +39 -0
  78. package/typings/antlr4ts/atn/DecisionEventInfo.d.ts +54 -0
  79. package/typings/antlr4ts/atn/DecisionInfo.d.ts +201 -0
  80. package/typings/antlr4ts/atn/DecisionState.d.ts +10 -0
  81. package/typings/antlr4ts/atn/EpsilonTransition.d.ts +24 -0
  82. package/typings/antlr4ts/atn/ErrorInfo.d.ts +32 -0
  83. package/typings/antlr4ts/atn/InvalidState.d.ts +13 -0
  84. package/typings/antlr4ts/atn/LL1Analyzer.d.ts +98 -0
  85. package/typings/antlr4ts/atn/LexerATNSimulator.d.ts +153 -0
  86. package/typings/antlr4ts/atn/LexerAction.d.ts +47 -0
  87. package/typings/antlr4ts/atn/LexerActionExecutor.d.ts +104 -0
  88. package/typings/antlr4ts/atn/LexerActionType.d.ts +44 -0
  89. package/typings/antlr4ts/atn/LexerChannelAction.d.ts +48 -0
  90. package/typings/antlr4ts/atn/LexerCustomAction.d.ts +73 -0
  91. package/typings/antlr4ts/atn/LexerIndexedCustomAction.d.ts +74 -0
  92. package/typings/antlr4ts/atn/LexerModeAction.d.ts +48 -0
  93. package/typings/antlr4ts/atn/LexerMoreAction.d.ts +47 -0
  94. package/typings/antlr4ts/atn/LexerPopModeAction.d.ts +47 -0
  95. package/typings/antlr4ts/atn/LexerPushModeAction.d.ts +48 -0
  96. package/typings/antlr4ts/atn/LexerSkipAction.d.ts +47 -0
  97. package/typings/antlr4ts/atn/LexerTypeAction.d.ts +47 -0
  98. package/typings/antlr4ts/atn/LookaheadEventInfo.d.ts +37 -0
  99. package/typings/antlr4ts/atn/LoopEndState.d.ts +11 -0
  100. package/typings/antlr4ts/atn/NotSetTransition.d.ts +14 -0
  101. package/typings/antlr4ts/atn/OrderedATNConfigSet.d.ts +23 -0
  102. package/typings/antlr4ts/atn/ParseInfo.d.ts +79 -0
  103. package/typings/antlr4ts/atn/ParserATNSimulator.d.ts +567 -0
  104. package/typings/antlr4ts/atn/PlusBlockStartState.d.ts +16 -0
  105. package/typings/antlr4ts/atn/PlusLoopbackState.d.ts +12 -0
  106. package/typings/antlr4ts/atn/PrecedencePredicateTransition.d.ts +21 -0
  107. package/typings/antlr4ts/atn/PredicateEvalInfo.d.ts +54 -0
  108. package/typings/antlr4ts/atn/PredicateTransition.d.ts +25 -0
  109. package/typings/antlr4ts/atn/PredictionContext.d.ts +89 -0
  110. package/typings/antlr4ts/atn/PredictionContextCache.d.ts +40 -0
  111. package/typings/antlr4ts/atn/PredictionMode.d.ts +89 -0
  112. package/typings/antlr4ts/atn/ProfilingATNSimulator.d.ts +55 -0
  113. package/typings/antlr4ts/atn/RangeTransition.d.ts +17 -0
  114. package/typings/antlr4ts/atn/RuleStartState.d.ts +13 -0
  115. package/typings/antlr4ts/atn/RuleStopState.d.ts +15 -0
  116. package/typings/antlr4ts/atn/RuleTransition.d.ts +22 -0
  117. package/typings/antlr4ts/atn/SemanticContext.d.ts +143 -0
  118. package/typings/antlr4ts/atn/SetTransition.d.ts +17 -0
  119. package/typings/antlr4ts/atn/SimulatorState.d.ts +17 -0
  120. package/typings/antlr4ts/atn/StarBlockStartState.d.ts +10 -0
  121. package/typings/antlr4ts/atn/StarLoopEntryState.d.ts +37 -0
  122. package/typings/antlr4ts/atn/StarLoopbackState.d.ts +11 -0
  123. package/typings/antlr4ts/atn/TokensStartState.d.ts +10 -0
  124. package/typings/antlr4ts/atn/Transition.d.ts +38 -0
  125. package/typings/antlr4ts/atn/TransitionType.d.ts +16 -0
  126. package/typings/antlr4ts/atn/WildcardTransition.d.ts +13 -0
  127. package/typings/antlr4ts/atn/index.d.ts +73 -0
  128. package/typings/antlr4ts/dfa/AcceptStateInfo.d.ts +33 -0
  129. package/typings/antlr4ts/dfa/DFA.d.ts +94 -0
  130. package/typings/antlr4ts/dfa/DFASerializer.d.ts +23 -0
  131. package/typings/antlr4ts/dfa/DFAState.d.ts +95 -0
  132. package/typings/antlr4ts/dfa/LexerDFASerializer.d.ts +10 -0
  133. package/typings/antlr4ts/dfa/index.d.ts +9 -0
  134. package/typings/antlr4ts/index.d.ts +49 -0
  135. package/typings/antlr4ts/misc/Args.d.ts +13 -0
  136. package/typings/antlr4ts/misc/Array2DHashMap.d.ts +20 -0
  137. package/typings/antlr4ts/misc/Array2DHashSet.d.ts +62 -0
  138. package/typings/antlr4ts/misc/ArrayEqualityComparator.d.ts +32 -0
  139. package/typings/antlr4ts/misc/Arrays.d.ts +18 -0
  140. package/typings/antlr4ts/misc/BitSet.d.ts +268 -0
  141. package/typings/antlr4ts/misc/Character.d.ts +7 -0
  142. package/typings/antlr4ts/misc/DefaultEqualityComparator.d.ts +31 -0
  143. package/typings/antlr4ts/misc/EqualityComparator.d.ts +29 -0
  144. package/typings/antlr4ts/misc/IntSet.d.ts +129 -0
  145. package/typings/antlr4ts/misc/IntegerList.d.ts +69 -0
  146. package/typings/antlr4ts/misc/IntegerStack.d.ts +15 -0
  147. package/typings/antlr4ts/misc/InterpreterDataReader.d.ts +39 -0
  148. package/typings/antlr4ts/misc/Interval.d.ts +57 -0
  149. package/typings/antlr4ts/misc/IntervalSet.d.ts +96 -0
  150. package/typings/antlr4ts/misc/MultiMap.d.ts +9 -0
  151. package/typings/antlr4ts/misc/MurmurHash.d.ts +45 -0
  152. package/typings/antlr4ts/misc/ObjectEqualityComparator.d.ts +32 -0
  153. package/typings/antlr4ts/misc/ParseCancellationException.d.ts +18 -0
  154. package/typings/antlr4ts/misc/Stubs.d.ts +31 -0
  155. package/typings/antlr4ts/misc/UUID.d.ts +13 -0
  156. package/typings/antlr4ts/misc/Utils.d.ts +15 -0
  157. package/typings/antlr4ts/misc/index.d.ts +25 -0
  158. package/typings/antlr4ts/tree/AbstractParseTreeVisitor.d.ts +103 -0
  159. package/typings/antlr4ts/tree/ErrorNode.d.ts +17 -0
  160. package/typings/antlr4ts/tree/ParseTree.d.ts +36 -0
  161. package/typings/antlr4ts/tree/ParseTreeListener.d.ts +26 -0
  162. package/typings/antlr4ts/tree/ParseTreeProperty.d.ts +28 -0
  163. package/typings/antlr4ts/tree/ParseTreeVisitor.d.ts +48 -0
  164. package/typings/antlr4ts/tree/ParseTreeWalker.d.ts +35 -0
  165. package/typings/antlr4ts/tree/RuleNode.d.ts +21 -0
  166. package/typings/antlr4ts/tree/SyntaxTree.d.ts +29 -0
  167. package/typings/antlr4ts/tree/TerminalNode.d.ts +27 -0
  168. package/typings/antlr4ts/tree/Tree.d.ts +36 -0
  169. package/typings/antlr4ts/tree/Trees.d.ts +75 -0
  170. package/typings/antlr4ts/tree/index.d.ts +16 -0
  171. package/typings/antlr4ts/tree/pattern/Chunk.d.ts +17 -0
  172. package/typings/antlr4ts/tree/pattern/ParseTreeMatch.d.ts +124 -0
  173. package/typings/antlr4ts/tree/pattern/ParseTreePattern.d.ts +98 -0
  174. package/typings/antlr4ts/tree/pattern/ParseTreePatternMatcher.d.ts +166 -0
  175. package/typings/antlr4ts/tree/pattern/RuleTagToken.d.ts +122 -0
  176. package/typings/antlr4ts/tree/pattern/TagChunk.d.ts +59 -0
  177. package/typings/antlr4ts/tree/pattern/TextChunk.d.ts +35 -0
  178. package/typings/antlr4ts/tree/pattern/TokenTagToken.d.ts +56 -0
  179. package/typings/antlr4ts/tree/pattern/index.d.ts +9 -0
  180. package/typings/antlr4ts/tree/xpath/XPath.d.ts +66 -0
  181. package/typings/antlr4ts/tree/xpath/XPathElement.d.ts +19 -0
  182. package/typings/antlr4ts/tree/xpath/XPathLexer.d.ts +36 -0
  183. package/typings/antlr4ts/tree/xpath/XPathLexerErrorListener.d.ts +10 -0
  184. package/typings/antlr4ts/tree/xpath/XPathRuleAnywhereElement.d.ts +14 -0
  185. package/typings/antlr4ts/tree/xpath/XPathRuleElement.d.ts +11 -0
  186. package/typings/antlr4ts/tree/xpath/XPathTokenAnywhereElement.d.ts +11 -0
  187. package/typings/antlr4ts/tree/xpath/XPathTokenElement.d.ts +11 -0
  188. package/typings/antlr4ts/tree/xpath/XPathWildcardAnywhereElement.d.ts +10 -0
  189. package/typings/antlr4ts/tree/xpath/XPathWildcardElement.d.ts +10 -0
  190. package/typings/antlr4ts/tree/xpath/index.d.ts +14 -0
  191. package/typings/common/filter/antlr/OpraFilterLexer.d.ts +4 -4
  192. package/typings/common/filter/antlr/OpraFilterParser.d.ts +8 -8
  193. package/typings/common/filter/antlr/OpraFilterVisitor.d.ts +1 -1
  194. package/typings/common/filter/error-listener.d.ts +2 -2
  195. package/typings/common/filter/errors.d.ts +2 -2
  196. package/typings/common/filter/filter-tree-visitor.d.ts +1 -1
  197. package/typings/common/filter/parse.d.ts +1 -1
  198. package/umd/714.min.cjs +1 -1
  199. package/umd/antlr4ts.min.cjs +1 -1
  200. package/umd/main.min.cjs +1 -1
  201. package/umd/opra-common.min.cjs +1 -1
  202. 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
+ }