openpinescript 0.1.1__py3-none-any.whl
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.
- openpinescript/__init__.py +129 -0
- openpinescript/__main__.py +5 -0
- openpinescript/_cli.py +24 -0
- openpinescript/_engine/LICENSE +674 -0
- openpinescript/_engine/VERSION +1 -0
- openpinescript/_engine/dist/cli.mjs +108691 -0
- openpinescript/_engine/node_modules/antlr4ng/LICENSE.txt +29 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATN.cjs +3159 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATN.js +3159 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATN.mjs +3139 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNConfig.cjs +911 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNConfig.js +911 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNConfig.mjs +891 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNConfigSet.cjs +3781 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNConfigSet.js +3781 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNConfigSet.mjs +3761 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNDeserializationOptions.cjs +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNDeserializationOptions.js +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNDeserializationOptions.mjs +0 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNDeserializer.cjs +4300 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNDeserializer.js +4300 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNDeserializer.mjs +4280 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNSerializer.cjs +4798 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNSerializer.js +4798 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNSerializer.mjs +4778 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNSimulator.cjs +982 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNSimulator.js +982 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNSimulator.mjs +962 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNState.cjs +85 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNState.js +85 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNState.mjs +67 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/AbstractPredicateTransition.cjs +78 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/AbstractPredicateTransition.js +78 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/AbstractPredicateTransition.mjs +58 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ActionTransition.cjs +96 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ActionTransition.js +96 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ActionTransition.mjs +76 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/AmbiguityInfo.cjs +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/AmbiguityInfo.js +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/AmbiguityInfo.mjs +0 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ArrayPredictionContext.cjs +243 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ArrayPredictionContext.js +243 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ArrayPredictionContext.mjs +223 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/AtomTransition.cjs +904 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/AtomTransition.js +904 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/AtomTransition.mjs +884 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/BasicBlockStartState.cjs +112 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/BasicBlockStartState.js +112 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/BasicBlockStartState.mjs +92 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/BasicState.cjs +95 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/BasicState.js +95 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/BasicState.mjs +75 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/BlockEndState.cjs +96 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/BlockEndState.js +96 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/BlockEndState.mjs +76 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/BlockStartState.cjs +104 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/BlockStartState.js +104 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/BlockStartState.mjs +84 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/CodePointTransitions.cjs +947 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/CodePointTransitions.js +947 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/CodePointTransitions.mjs +927 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ContextSensitivityInfo.cjs +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ContextSensitivityInfo.js +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ContextSensitivityInfo.mjs +0 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionEventInfo.cjs +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionEventInfo.js +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionEventInfo.mjs +0 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionInfo.cjs +206 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionInfo.js +206 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionInfo.mjs +188 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionState.cjs +96 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionState.js +96 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionState.mjs +76 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/EmptyPredictionContext.cjs +237 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/EmptyPredictionContext.js +237 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/EmptyPredictionContext.mjs +217 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/EpsilonTransition.cjs +103 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/EpsilonTransition.js +103 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/EpsilonTransition.mjs +83 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LL1Analyzer.cjs +3159 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LL1Analyzer.js +3159 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LL1Analyzer.mjs +3139 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerATNConfig.cjs +961 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerATNConfig.js +961 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerATNConfig.mjs +941 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerATNSimulator.cjs +5604 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerATNSimulator.js +5604 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerATNSimulator.mjs +5584 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerAction.cjs +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerAction.js +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerAction.mjs +0 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerActionExecutor.cjs +305 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerActionExecutor.js +305 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerActionExecutor.mjs +285 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerActionType.cjs +42 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerActionType.js +42 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerActionType.mjs +22 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerChannelAction.cjs +163 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerChannelAction.js +163 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerChannelAction.mjs +143 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerCustomAction.cjs +169 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerCustomAction.js +169 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerCustomAction.mjs +149 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerIndexedCustomAction.cjs +142 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerIndexedCustomAction.js +142 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerIndexedCustomAction.mjs +122 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerModeAction.cjs +163 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerModeAction.js +163 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerModeAction.mjs +143 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerMoreAction.cjs +73 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerMoreAction.js +73 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerMoreAction.mjs +53 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerPopModeAction.cjs +73 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerPopModeAction.js +73 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerPopModeAction.mjs +53 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerPushModeAction.cjs +163 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerPushModeAction.js +163 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerPushModeAction.mjs +143 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerSkipAction.cjs +71 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerSkipAction.js +71 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerSkipAction.mjs +51 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerTypeAction.cjs +159 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerTypeAction.js +159 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerTypeAction.mjs +139 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LookaheadEventInfo.cjs +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LookaheadEventInfo.js +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LookaheadEventInfo.mjs +0 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LoopEndState.cjs +96 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LoopEndState.js +96 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/LoopEndState.mjs +76 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/NotSetTransition.cjs +921 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/NotSetTransition.js +921 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/NotSetTransition.mjs +901 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/OrderedATNConfigSet.cjs +3824 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/OrderedATNConfigSet.js +3824 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/OrderedATNConfigSet.mjs +3804 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ParseInfo.cjs +156 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ParseInfo.js +156 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ParseInfo.mjs +138 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ParserATNSimulator.cjs +6082 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ParserATNSimulator.js +6082 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ParserATNSimulator.mjs +6062 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PlusBlockStartState.cjs +113 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PlusBlockStartState.js +113 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PlusBlockStartState.mjs +93 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PlusLoopbackState.cjs +104 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PlusLoopbackState.js +104 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PlusLoopbackState.mjs +84 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PrecedencePredicateTransition.cjs +887 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PrecedencePredicateTransition.js +887 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PrecedencePredicateTransition.mjs +867 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredicateEvalInfo.cjs +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredicateEvalInfo.js +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredicateEvalInfo.mjs +0 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredicateTransition.cjs +892 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredicateTransition.js +892 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredicateTransition.mjs +872 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContext.cjs +153 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContext.js +153 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContext.mjs +133 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContextCache.cjs +715 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContextCache.js +715 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContextCache.mjs +695 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContextUtils.cjs +3604 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContextUtils.js +3604 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContextUtils.mjs +3584 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionMode.cjs +4284 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionMode.js +4284 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionMode.mjs +4264 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ProfilingATNSimulator.cjs +6467 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ProfilingATNSimulator.js +6467 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/ProfilingATNSimulator.mjs +6447 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/RangeTransition.cjs +905 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/RangeTransition.js +905 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/RangeTransition.mjs +885 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleStartState.cjs +97 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleStartState.js +97 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleStartState.mjs +77 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleStopState.cjs +95 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleStopState.js +95 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleStopState.mjs +75 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleTransition.cjs +93 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleTransition.js +93 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleTransition.mjs +73 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/SemanticContext.cjs +807 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/SemanticContext.js +807 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/SemanticContext.mjs +787 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/SetTransition.cjs +905 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/SetTransition.js +905 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/SetTransition.mjs +885 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/SingletonPredictionContext.cjs +207 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/SingletonPredictionContext.js +207 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/SingletonPredictionContext.mjs +187 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarBlockStartState.cjs +112 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarBlockStartState.js +112 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarBlockStartState.mjs +92 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarLoopEntryState.cjs +117 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarLoopEntryState.js +117 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarLoopEntryState.mjs +97 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarLoopbackState.cjs +95 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarLoopbackState.js +95 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarLoopbackState.mjs +75 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/TokensStartState.cjs +104 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/TokensStartState.js +104 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/TokensStartState.mjs +84 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/Transition.cjs +66 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/Transition.js +66 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/Transition.mjs +48 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/WildcardTransition.cjs +84 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/WildcardTransition.js +84 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/WildcardTransition.mjs +64 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/helpers.cjs +246 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/helpers.js +246 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/helpers.mjs +226 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/index.cjs +9485 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/index.js +9485 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/atn/index.mjs +9465 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFA.cjs +559 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFA.js +559 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFA.mjs +539 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFASerializer.cjs +76 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFASerializer.js +76 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFASerializer.mjs +58 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFAState.cjs +136 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFAState.js +136 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFAState.mjs +116 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFAStateEqualityComparator.cjs +150 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFAStateEqualityComparator.js +150 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFAStateEqualityComparator.mjs +130 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/LexerDFASerializer.cjs +237 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/LexerDFASerializer.js +237 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/LexerDFASerializer.mjs +217 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/PredPrediction.cjs +31 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/PredPrediction.js +31 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/PredPrediction.mjs +13 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/index.cjs +571 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/index.js +571 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/dfa/index.mjs +551 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/index.cjs +17501 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/index.mjs +17481 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/BitSet.cjs +208 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/BitSet.js +208 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/BitSet.mjs +190 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/DefaultEqualityComparator.cjs +68 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/DefaultEqualityComparator.js +68 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/DefaultEqualityComparator.mjs +48 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/EqualityComparator.cjs +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/EqualityComparator.js +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/EqualityComparator.mjs +0 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/HashMap.cjs +545 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/HashMap.js +545 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/HashMap.mjs +525 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/HashSet.cjs +438 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/HashSet.js +438 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/HashSet.mjs +418 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/InterpreterDataReader.cjs +4420 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/InterpreterDataReader.js +4420 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/InterpreterDataReader.mjs +4400 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/Interval.cjs +133 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/Interval.js +133 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/Interval.mjs +115 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/IntervalSet.cjs +834 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/IntervalSet.js +834 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/IntervalSet.mjs +814 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/MapKeyEqualityOperator.cjs +40 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/MapKeyEqualityOperator.js +40 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/MapKeyEqualityOperator.mjs +22 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/MultiMap.cjs +55 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/MultiMap.js +55 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/MultiMap.mjs +37 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/ObjectEqualityComparator.cjs +43 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/ObjectEqualityComparator.js +43 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/ObjectEqualityComparator.mjs +25 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/OrderedHashMap.cjs +610 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/OrderedHashMap.js +610 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/OrderedHashMap.mjs +590 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/OrderedHashSet.cjs +470 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/OrderedHashSet.js +470 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/OrderedHashSet.mjs +450 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/ParseCancellationException.cjs +34 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/ParseCancellationException.js +34 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/ParseCancellationException.mjs +16 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/index.cjs +4643 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/index.js +4643 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/misc/index.mjs +4623 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/AbstractParseTreeVisitor.cjs +63 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/AbstractParseTreeVisitor.js +63 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/AbstractParseTreeVisitor.mjs +45 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ErrorNode.cjs +211 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ErrorNode.js +211 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ErrorNode.mjs +191 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTree.cjs +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTree.js +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTree.mjs +0 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeListener.cjs +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeListener.js +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeListener.mjs +0 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeVisitor.cjs +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeVisitor.js +17 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeVisitor.mjs +0 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeWalker.cjs +267 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeWalker.js +267 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeWalker.mjs +247 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/TerminalNode.cjs +201 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/TerminalNode.js +201 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/TerminalNode.mjs +181 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/Trees.cjs +3159 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/Trees.js +3159 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/Trees.mjs +3139 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/index.cjs +16018 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/index.js +16018 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/tree/index.mjs +15998 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/utils/DoubleDict.cjs +568 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/utils/DoubleDict.js +568 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/utils/DoubleDict.mjs +548 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/utils/MurmurHash.cjs +98 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/utils/MurmurHash.js +98 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/utils/MurmurHash.mjs +80 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/utils/helpers.cjs +78 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/utils/helpers.js +78 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/utils/helpers.mjs +60 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/utils/index.cjs +625 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/utils/index.js +625 -0
- openpinescript/_engine/node_modules/antlr4ng/dist/utils/index.mjs +605 -0
- openpinescript/_engine/node_modules/antlr4ng/package.json +72 -0
- openpinescript/_engine/package.json +94 -0
- openpinescript/_runtime.py +29 -0
- openpinescript-0.1.1.dist-info/METADATA +140 -0
- openpinescript-0.1.1.dist-info/RECORD +332 -0
- openpinescript-0.1.1.dist-info/WHEEL +4 -0
- openpinescript-0.1.1.dist-info/entry_points.txt +2 -0
- openpinescript-0.1.1.dist-info/licenses/LICENSE +674 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/atn/ContextSensitivityInfo.ts
|
|
16
|
+
var ContextSensitivityInfo_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(ContextSensitivityInfo_exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/atn/ContextSensitivityInfo.ts
|
|
16
|
+
var ContextSensitivityInfo_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(ContextSensitivityInfo_exports);
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/atn/DecisionEventInfo.ts
|
|
16
|
+
var DecisionEventInfo_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(DecisionEventInfo_exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/atn/DecisionEventInfo.ts
|
|
16
|
+
var DecisionEventInfo_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(DecisionEventInfo_exports);
|
|
File without changes
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/atn/DecisionInfo.ts
|
|
21
|
+
var DecisionInfo_exports = {};
|
|
22
|
+
__export(DecisionInfo_exports, {
|
|
23
|
+
DecisionInfo: () => DecisionInfo
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(DecisionInfo_exports);
|
|
26
|
+
var DecisionInfo = class {
|
|
27
|
+
static {
|
|
28
|
+
__name(this, "DecisionInfo");
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The decision number, which is an index into {@link ATN.decisionToState}.
|
|
32
|
+
*/
|
|
33
|
+
decision = 0;
|
|
34
|
+
/**
|
|
35
|
+
* The total number of times {@link ParserATNSimulator.adaptivePredict} was
|
|
36
|
+
* invoked for this decision.
|
|
37
|
+
*/
|
|
38
|
+
invocations = 0;
|
|
39
|
+
/**
|
|
40
|
+
* The total time spent in {@link ParserATNSimulator.adaptivePredict} for
|
|
41
|
+
* this decision, in nanoseconds.
|
|
42
|
+
*
|
|
43
|
+
* The value of this field contains the sum of differential results obtained
|
|
44
|
+
* by {@link process.hrtime()}, and is not adjusted to compensate for JIT
|
|
45
|
+
* and/or garbage collection overhead. For best accuracy, use a modern Node.js
|
|
46
|
+
* version that provides precise results from {@link process.hrtime()}, and
|
|
47
|
+
* perform profiling in a separate process which is warmed up by parsing the
|
|
48
|
+
* input prior to profiling.
|
|
49
|
+
*/
|
|
50
|
+
timeInPrediction = 0;
|
|
51
|
+
/**
|
|
52
|
+
* The sum of the lookahead required for SLL prediction for this decision.
|
|
53
|
+
* Note that SLL prediction is used before LL prediction for performance
|
|
54
|
+
* reasons even when {@link PredictionMode.LL} or
|
|
55
|
+
* {@link PredictionMode.LL_EXACT_AMBIG_DETECTION} is used.
|
|
56
|
+
*/
|
|
57
|
+
sllTotalLook = 0;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the minimum lookahead required for any single SLL prediction to
|
|
60
|
+
* complete for this decision, by reaching a unique prediction, reaching an
|
|
61
|
+
* SLL conflict state, or encountering a syntax error.
|
|
62
|
+
*/
|
|
63
|
+
sllMinLook = 0;
|
|
64
|
+
/**
|
|
65
|
+
* Gets the maximum lookahead required for any single SLL prediction to
|
|
66
|
+
* complete for this decision, by reaching a unique prediction, reaching an
|
|
67
|
+
* SLL conflict state, or encountering a syntax error.
|
|
68
|
+
*/
|
|
69
|
+
sllMaxLook = 0;
|
|
70
|
+
/**
|
|
71
|
+
* Gets the {@link LookaheadEventInfo} associated with the event where the
|
|
72
|
+
* {@link sllMaxLook} value was set.
|
|
73
|
+
*/
|
|
74
|
+
sllMaxLookEvent;
|
|
75
|
+
/**
|
|
76
|
+
* The sum of the lookahead required for LL prediction for this decision.
|
|
77
|
+
* Note that LL prediction is only used when SLL prediction reaches a
|
|
78
|
+
* conflict state.
|
|
79
|
+
*/
|
|
80
|
+
llTotalLook = 0;
|
|
81
|
+
/**
|
|
82
|
+
* Gets the minimum lookahead required for any single LL prediction to
|
|
83
|
+
* complete for this decision. An LL prediction completes when the algorithm
|
|
84
|
+
* reaches a unique prediction, a conflict state (for
|
|
85
|
+
* {@link PredictionMode.LL}, an ambiguity state (for
|
|
86
|
+
* {@link PredictionMode.LL_EXACT_AMBIG_DETECTION}, or a syntax error.
|
|
87
|
+
*/
|
|
88
|
+
llMinLook = 0;
|
|
89
|
+
/**
|
|
90
|
+
* Gets the maximum lookahead required for any single LL prediction to
|
|
91
|
+
* complete for this decision. An LL prediction completes when the algorithm
|
|
92
|
+
* reaches a unique prediction, a conflict state (for
|
|
93
|
+
* {@link PredictionMode.LL}, an ambiguity state (for
|
|
94
|
+
* {@link PredictionMode.LL_EXACT_AMBIG_DETECTION}, or a syntax error.
|
|
95
|
+
*/
|
|
96
|
+
llMaxLook = 0;
|
|
97
|
+
/**
|
|
98
|
+
* Gets the {@link LookaheadEventInfo} associated with the event where the
|
|
99
|
+
* {@link llMaxLook} value was set.
|
|
100
|
+
*/
|
|
101
|
+
llMaxLookEvent;
|
|
102
|
+
/**
|
|
103
|
+
* A collection of {@link ContextSensitivityInfo} instances describing the
|
|
104
|
+
* context sensitivities encountered during LL prediction for this decision.
|
|
105
|
+
*/
|
|
106
|
+
contextSensitivities;
|
|
107
|
+
/**
|
|
108
|
+
* A collection of {@link DecisionEventInfo} instances describing the parse errors
|
|
109
|
+
* identified during calls to {@link ParserATNSimulator.adaptivePredict} for
|
|
110
|
+
* this decision.
|
|
111
|
+
*/
|
|
112
|
+
errors;
|
|
113
|
+
/**
|
|
114
|
+
* A collection of {@link AmbiguityInfo} instances describing the
|
|
115
|
+
* ambiguities encountered during LL prediction for this decision.
|
|
116
|
+
*/
|
|
117
|
+
ambiguities;
|
|
118
|
+
/**
|
|
119
|
+
* A collection of {@link PredicateEvalInfo} instances describing the
|
|
120
|
+
* results of evaluating individual predicates during prediction for this
|
|
121
|
+
* decision.
|
|
122
|
+
*/
|
|
123
|
+
predicateEvals;
|
|
124
|
+
/**
|
|
125
|
+
* The total number of ATN transitions required during SLL prediction for
|
|
126
|
+
* this decision. An ATN transition is determined by the number of times the
|
|
127
|
+
* DFA does not contain an edge that is required for prediction, resulting
|
|
128
|
+
* in on-the-fly computation of that edge.
|
|
129
|
+
/**
|
|
130
|
+
* If DFA caching of SLL transitions is employed by the implementation, ATN
|
|
131
|
+
* computation may cache the computed edge for efficient lookup during
|
|
132
|
+
* future parsing of this decision. Otherwise, the SLL parsing algorithm
|
|
133
|
+
* will use ATN transitions exclusively.
|
|
134
|
+
*
|
|
135
|
+
* @see sllDFATransitions
|
|
136
|
+
* @see ParserATNSimulator.computeTargetState
|
|
137
|
+
* @see LexerATNSimulator.computeTargetState
|
|
138
|
+
*/
|
|
139
|
+
sllATNTransitions = 0;
|
|
140
|
+
/**
|
|
141
|
+
* The total number of DFA transitions required during SLL prediction for
|
|
142
|
+
* this decision.
|
|
143
|
+
*
|
|
144
|
+
* If the ATN simulator implementation does not use DFA caching for SLL
|
|
145
|
+
* transitions, this value will be 0.
|
|
146
|
+
*
|
|
147
|
+
* @see ParserATNSimulator.getExistingTargetState
|
|
148
|
+
* @see LexerATNSimulator.getExistingTargetState
|
|
149
|
+
*/
|
|
150
|
+
sllDFATransitions = 0;
|
|
151
|
+
/**
|
|
152
|
+
* Gets the total number of times SLL prediction completed in a conflict
|
|
153
|
+
* state, resulting in fallback to LL prediction.
|
|
154
|
+
*
|
|
155
|
+
* Note that this value is not related to whether or not
|
|
156
|
+
* {@link PredictionMode.SLL} may be used successfully with a particular
|
|
157
|
+
* grammar. If the ambiguity resolution algorithm applied to the SLL
|
|
158
|
+
* conflicts for this decision produce the same result as LL prediction for
|
|
159
|
+
* this decision, {@link PredictionMode.SLL} would produce the same overall
|
|
160
|
+
* parsing result as {@link PredictionMode.LL}.
|
|
161
|
+
*/
|
|
162
|
+
llFallback = 0;
|
|
163
|
+
/**
|
|
164
|
+
* The total number of ATN transitions required during LL prediction for
|
|
165
|
+
* this decision. An ATN transition is determined by the number of times the
|
|
166
|
+
* DFA does not contain an edge that is required for prediction, resulting
|
|
167
|
+
* in on-the-fly computation of that edge.
|
|
168
|
+
*
|
|
169
|
+
* If DFA caching of LL transitions is employed by the implementation, ATN
|
|
170
|
+
* computation may cache the computed edge for efficient lookup during
|
|
171
|
+
* future parsing of this decision. Otherwise, the LL parsing algorithm will
|
|
172
|
+
* use ATN transitions exclusively.
|
|
173
|
+
*
|
|
174
|
+
* @see llDFATransitions
|
|
175
|
+
* @see ParserATNSimulator.computeTargetState
|
|
176
|
+
* @see LexerATNSimulator.computeTargetState
|
|
177
|
+
*/
|
|
178
|
+
llATNTransitions = 0;
|
|
179
|
+
/**
|
|
180
|
+
* The total number of DFA transitions required during LL prediction for
|
|
181
|
+
* this decision.
|
|
182
|
+
*
|
|
183
|
+
* If the ATN simulator implementation does not use DFA caching for LL
|
|
184
|
+
* transitions, this value will be 0.
|
|
185
|
+
*
|
|
186
|
+
* @see ParserATNSimulator.getExistingTargetState
|
|
187
|
+
* @see LexerATNSimulator.getExistingTargetState
|
|
188
|
+
*/
|
|
189
|
+
llDFATransitions = 0;
|
|
190
|
+
/**
|
|
191
|
+
* Constructs a new instance of the {@link DecisionInfo} class to contain
|
|
192
|
+
* statistics for a particular decision.
|
|
193
|
+
*
|
|
194
|
+
* @param decision The decision number
|
|
195
|
+
*/
|
|
196
|
+
constructor(decision) {
|
|
197
|
+
this.decision = decision;
|
|
198
|
+
this.contextSensitivities = [];
|
|
199
|
+
this.errors = [];
|
|
200
|
+
this.ambiguities = [];
|
|
201
|
+
this.predicateEvals = [];
|
|
202
|
+
}
|
|
203
|
+
toString() {
|
|
204
|
+
return "{decision=" + this.decision + ", contextSensitivities=" + this.contextSensitivities.length + ", errors=" + this.errors.length + ", ambiguities=" + this.ambiguities.length + ", sllLookahead=" + this.sllTotalLook + ", sllATNTransitions=" + this.sllATNTransitions + ", sllDFATransitions=" + this.sllDFATransitions + ", llFallback=" + this.llFallback + ", llLookahead=" + this.llTotalLook + ", llATNTransitions=" + this.llATNTransitions + "}";
|
|
205
|
+
}
|
|
206
|
+
};
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/atn/DecisionInfo.ts
|
|
21
|
+
var DecisionInfo_exports = {};
|
|
22
|
+
__export(DecisionInfo_exports, {
|
|
23
|
+
DecisionInfo: () => DecisionInfo
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(DecisionInfo_exports);
|
|
26
|
+
var DecisionInfo = class {
|
|
27
|
+
static {
|
|
28
|
+
__name(this, "DecisionInfo");
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The decision number, which is an index into {@link ATN.decisionToState}.
|
|
32
|
+
*/
|
|
33
|
+
decision = 0;
|
|
34
|
+
/**
|
|
35
|
+
* The total number of times {@link ParserATNSimulator.adaptivePredict} was
|
|
36
|
+
* invoked for this decision.
|
|
37
|
+
*/
|
|
38
|
+
invocations = 0;
|
|
39
|
+
/**
|
|
40
|
+
* The total time spent in {@link ParserATNSimulator.adaptivePredict} for
|
|
41
|
+
* this decision, in nanoseconds.
|
|
42
|
+
*
|
|
43
|
+
* The value of this field contains the sum of differential results obtained
|
|
44
|
+
* by {@link process.hrtime()}, and is not adjusted to compensate for JIT
|
|
45
|
+
* and/or garbage collection overhead. For best accuracy, use a modern Node.js
|
|
46
|
+
* version that provides precise results from {@link process.hrtime()}, and
|
|
47
|
+
* perform profiling in a separate process which is warmed up by parsing the
|
|
48
|
+
* input prior to profiling.
|
|
49
|
+
*/
|
|
50
|
+
timeInPrediction = 0;
|
|
51
|
+
/**
|
|
52
|
+
* The sum of the lookahead required for SLL prediction for this decision.
|
|
53
|
+
* Note that SLL prediction is used before LL prediction for performance
|
|
54
|
+
* reasons even when {@link PredictionMode.LL} or
|
|
55
|
+
* {@link PredictionMode.LL_EXACT_AMBIG_DETECTION} is used.
|
|
56
|
+
*/
|
|
57
|
+
sllTotalLook = 0;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the minimum lookahead required for any single SLL prediction to
|
|
60
|
+
* complete for this decision, by reaching a unique prediction, reaching an
|
|
61
|
+
* SLL conflict state, or encountering a syntax error.
|
|
62
|
+
*/
|
|
63
|
+
sllMinLook = 0;
|
|
64
|
+
/**
|
|
65
|
+
* Gets the maximum lookahead required for any single SLL prediction to
|
|
66
|
+
* complete for this decision, by reaching a unique prediction, reaching an
|
|
67
|
+
* SLL conflict state, or encountering a syntax error.
|
|
68
|
+
*/
|
|
69
|
+
sllMaxLook = 0;
|
|
70
|
+
/**
|
|
71
|
+
* Gets the {@link LookaheadEventInfo} associated with the event where the
|
|
72
|
+
* {@link sllMaxLook} value was set.
|
|
73
|
+
*/
|
|
74
|
+
sllMaxLookEvent;
|
|
75
|
+
/**
|
|
76
|
+
* The sum of the lookahead required for LL prediction for this decision.
|
|
77
|
+
* Note that LL prediction is only used when SLL prediction reaches a
|
|
78
|
+
* conflict state.
|
|
79
|
+
*/
|
|
80
|
+
llTotalLook = 0;
|
|
81
|
+
/**
|
|
82
|
+
* Gets the minimum lookahead required for any single LL prediction to
|
|
83
|
+
* complete for this decision. An LL prediction completes when the algorithm
|
|
84
|
+
* reaches a unique prediction, a conflict state (for
|
|
85
|
+
* {@link PredictionMode.LL}, an ambiguity state (for
|
|
86
|
+
* {@link PredictionMode.LL_EXACT_AMBIG_DETECTION}, or a syntax error.
|
|
87
|
+
*/
|
|
88
|
+
llMinLook = 0;
|
|
89
|
+
/**
|
|
90
|
+
* Gets the maximum lookahead required for any single LL prediction to
|
|
91
|
+
* complete for this decision. An LL prediction completes when the algorithm
|
|
92
|
+
* reaches a unique prediction, a conflict state (for
|
|
93
|
+
* {@link PredictionMode.LL}, an ambiguity state (for
|
|
94
|
+
* {@link PredictionMode.LL_EXACT_AMBIG_DETECTION}, or a syntax error.
|
|
95
|
+
*/
|
|
96
|
+
llMaxLook = 0;
|
|
97
|
+
/**
|
|
98
|
+
* Gets the {@link LookaheadEventInfo} associated with the event where the
|
|
99
|
+
* {@link llMaxLook} value was set.
|
|
100
|
+
*/
|
|
101
|
+
llMaxLookEvent;
|
|
102
|
+
/**
|
|
103
|
+
* A collection of {@link ContextSensitivityInfo} instances describing the
|
|
104
|
+
* context sensitivities encountered during LL prediction for this decision.
|
|
105
|
+
*/
|
|
106
|
+
contextSensitivities;
|
|
107
|
+
/**
|
|
108
|
+
* A collection of {@link DecisionEventInfo} instances describing the parse errors
|
|
109
|
+
* identified during calls to {@link ParserATNSimulator.adaptivePredict} for
|
|
110
|
+
* this decision.
|
|
111
|
+
*/
|
|
112
|
+
errors;
|
|
113
|
+
/**
|
|
114
|
+
* A collection of {@link AmbiguityInfo} instances describing the
|
|
115
|
+
* ambiguities encountered during LL prediction for this decision.
|
|
116
|
+
*/
|
|
117
|
+
ambiguities;
|
|
118
|
+
/**
|
|
119
|
+
* A collection of {@link PredicateEvalInfo} instances describing the
|
|
120
|
+
* results of evaluating individual predicates during prediction for this
|
|
121
|
+
* decision.
|
|
122
|
+
*/
|
|
123
|
+
predicateEvals;
|
|
124
|
+
/**
|
|
125
|
+
* The total number of ATN transitions required during SLL prediction for
|
|
126
|
+
* this decision. An ATN transition is determined by the number of times the
|
|
127
|
+
* DFA does not contain an edge that is required for prediction, resulting
|
|
128
|
+
* in on-the-fly computation of that edge.
|
|
129
|
+
/**
|
|
130
|
+
* If DFA caching of SLL transitions is employed by the implementation, ATN
|
|
131
|
+
* computation may cache the computed edge for efficient lookup during
|
|
132
|
+
* future parsing of this decision. Otherwise, the SLL parsing algorithm
|
|
133
|
+
* will use ATN transitions exclusively.
|
|
134
|
+
*
|
|
135
|
+
* @see sllDFATransitions
|
|
136
|
+
* @see ParserATNSimulator.computeTargetState
|
|
137
|
+
* @see LexerATNSimulator.computeTargetState
|
|
138
|
+
*/
|
|
139
|
+
sllATNTransitions = 0;
|
|
140
|
+
/**
|
|
141
|
+
* The total number of DFA transitions required during SLL prediction for
|
|
142
|
+
* this decision.
|
|
143
|
+
*
|
|
144
|
+
* If the ATN simulator implementation does not use DFA caching for SLL
|
|
145
|
+
* transitions, this value will be 0.
|
|
146
|
+
*
|
|
147
|
+
* @see ParserATNSimulator.getExistingTargetState
|
|
148
|
+
* @see LexerATNSimulator.getExistingTargetState
|
|
149
|
+
*/
|
|
150
|
+
sllDFATransitions = 0;
|
|
151
|
+
/**
|
|
152
|
+
* Gets the total number of times SLL prediction completed in a conflict
|
|
153
|
+
* state, resulting in fallback to LL prediction.
|
|
154
|
+
*
|
|
155
|
+
* Note that this value is not related to whether or not
|
|
156
|
+
* {@link PredictionMode.SLL} may be used successfully with a particular
|
|
157
|
+
* grammar. If the ambiguity resolution algorithm applied to the SLL
|
|
158
|
+
* conflicts for this decision produce the same result as LL prediction for
|
|
159
|
+
* this decision, {@link PredictionMode.SLL} would produce the same overall
|
|
160
|
+
* parsing result as {@link PredictionMode.LL}.
|
|
161
|
+
*/
|
|
162
|
+
llFallback = 0;
|
|
163
|
+
/**
|
|
164
|
+
* The total number of ATN transitions required during LL prediction for
|
|
165
|
+
* this decision. An ATN transition is determined by the number of times the
|
|
166
|
+
* DFA does not contain an edge that is required for prediction, resulting
|
|
167
|
+
* in on-the-fly computation of that edge.
|
|
168
|
+
*
|
|
169
|
+
* If DFA caching of LL transitions is employed by the implementation, ATN
|
|
170
|
+
* computation may cache the computed edge for efficient lookup during
|
|
171
|
+
* future parsing of this decision. Otherwise, the LL parsing algorithm will
|
|
172
|
+
* use ATN transitions exclusively.
|
|
173
|
+
*
|
|
174
|
+
* @see llDFATransitions
|
|
175
|
+
* @see ParserATNSimulator.computeTargetState
|
|
176
|
+
* @see LexerATNSimulator.computeTargetState
|
|
177
|
+
*/
|
|
178
|
+
llATNTransitions = 0;
|
|
179
|
+
/**
|
|
180
|
+
* The total number of DFA transitions required during LL prediction for
|
|
181
|
+
* this decision.
|
|
182
|
+
*
|
|
183
|
+
* If the ATN simulator implementation does not use DFA caching for LL
|
|
184
|
+
* transitions, this value will be 0.
|
|
185
|
+
*
|
|
186
|
+
* @see ParserATNSimulator.getExistingTargetState
|
|
187
|
+
* @see LexerATNSimulator.getExistingTargetState
|
|
188
|
+
*/
|
|
189
|
+
llDFATransitions = 0;
|
|
190
|
+
/**
|
|
191
|
+
* Constructs a new instance of the {@link DecisionInfo} class to contain
|
|
192
|
+
* statistics for a particular decision.
|
|
193
|
+
*
|
|
194
|
+
* @param decision The decision number
|
|
195
|
+
*/
|
|
196
|
+
constructor(decision) {
|
|
197
|
+
this.decision = decision;
|
|
198
|
+
this.contextSensitivities = [];
|
|
199
|
+
this.errors = [];
|
|
200
|
+
this.ambiguities = [];
|
|
201
|
+
this.predicateEvals = [];
|
|
202
|
+
}
|
|
203
|
+
toString() {
|
|
204
|
+
return "{decision=" + this.decision + ", contextSensitivities=" + this.contextSensitivities.length + ", errors=" + this.errors.length + ", ambiguities=" + this.ambiguities.length + ", sllLookahead=" + this.sllTotalLook + ", sllATNTransitions=" + this.sllATNTransitions + ", sllDFATransitions=" + this.sllDFATransitions + ", llFallback=" + this.llFallback + ", llLookahead=" + this.llTotalLook + ", llATNTransitions=" + this.llATNTransitions + "}";
|
|
205
|
+
}
|
|
206
|
+
};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
|
|
4
|
+
// src/atn/DecisionInfo.ts
|
|
5
|
+
var DecisionInfo = class {
|
|
6
|
+
static {
|
|
7
|
+
__name(this, "DecisionInfo");
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The decision number, which is an index into {@link ATN.decisionToState}.
|
|
11
|
+
*/
|
|
12
|
+
decision = 0;
|
|
13
|
+
/**
|
|
14
|
+
* The total number of times {@link ParserATNSimulator.adaptivePredict} was
|
|
15
|
+
* invoked for this decision.
|
|
16
|
+
*/
|
|
17
|
+
invocations = 0;
|
|
18
|
+
/**
|
|
19
|
+
* The total time spent in {@link ParserATNSimulator.adaptivePredict} for
|
|
20
|
+
* this decision, in nanoseconds.
|
|
21
|
+
*
|
|
22
|
+
* The value of this field contains the sum of differential results obtained
|
|
23
|
+
* by {@link process.hrtime()}, and is not adjusted to compensate for JIT
|
|
24
|
+
* and/or garbage collection overhead. For best accuracy, use a modern Node.js
|
|
25
|
+
* version that provides precise results from {@link process.hrtime()}, and
|
|
26
|
+
* perform profiling in a separate process which is warmed up by parsing the
|
|
27
|
+
* input prior to profiling.
|
|
28
|
+
*/
|
|
29
|
+
timeInPrediction = 0;
|
|
30
|
+
/**
|
|
31
|
+
* The sum of the lookahead required for SLL prediction for this decision.
|
|
32
|
+
* Note that SLL prediction is used before LL prediction for performance
|
|
33
|
+
* reasons even when {@link PredictionMode.LL} or
|
|
34
|
+
* {@link PredictionMode.LL_EXACT_AMBIG_DETECTION} is used.
|
|
35
|
+
*/
|
|
36
|
+
sllTotalLook = 0;
|
|
37
|
+
/**
|
|
38
|
+
* Gets the minimum lookahead required for any single SLL prediction to
|
|
39
|
+
* complete for this decision, by reaching a unique prediction, reaching an
|
|
40
|
+
* SLL conflict state, or encountering a syntax error.
|
|
41
|
+
*/
|
|
42
|
+
sllMinLook = 0;
|
|
43
|
+
/**
|
|
44
|
+
* Gets the maximum lookahead required for any single SLL prediction to
|
|
45
|
+
* complete for this decision, by reaching a unique prediction, reaching an
|
|
46
|
+
* SLL conflict state, or encountering a syntax error.
|
|
47
|
+
*/
|
|
48
|
+
sllMaxLook = 0;
|
|
49
|
+
/**
|
|
50
|
+
* Gets the {@link LookaheadEventInfo} associated with the event where the
|
|
51
|
+
* {@link sllMaxLook} value was set.
|
|
52
|
+
*/
|
|
53
|
+
sllMaxLookEvent;
|
|
54
|
+
/**
|
|
55
|
+
* The sum of the lookahead required for LL prediction for this decision.
|
|
56
|
+
* Note that LL prediction is only used when SLL prediction reaches a
|
|
57
|
+
* conflict state.
|
|
58
|
+
*/
|
|
59
|
+
llTotalLook = 0;
|
|
60
|
+
/**
|
|
61
|
+
* Gets the minimum lookahead required for any single LL prediction to
|
|
62
|
+
* complete for this decision. An LL prediction completes when the algorithm
|
|
63
|
+
* reaches a unique prediction, a conflict state (for
|
|
64
|
+
* {@link PredictionMode.LL}, an ambiguity state (for
|
|
65
|
+
* {@link PredictionMode.LL_EXACT_AMBIG_DETECTION}, or a syntax error.
|
|
66
|
+
*/
|
|
67
|
+
llMinLook = 0;
|
|
68
|
+
/**
|
|
69
|
+
* Gets the maximum lookahead required for any single LL prediction to
|
|
70
|
+
* complete for this decision. An LL prediction completes when the algorithm
|
|
71
|
+
* reaches a unique prediction, a conflict state (for
|
|
72
|
+
* {@link PredictionMode.LL}, an ambiguity state (for
|
|
73
|
+
* {@link PredictionMode.LL_EXACT_AMBIG_DETECTION}, or a syntax error.
|
|
74
|
+
*/
|
|
75
|
+
llMaxLook = 0;
|
|
76
|
+
/**
|
|
77
|
+
* Gets the {@link LookaheadEventInfo} associated with the event where the
|
|
78
|
+
* {@link llMaxLook} value was set.
|
|
79
|
+
*/
|
|
80
|
+
llMaxLookEvent;
|
|
81
|
+
/**
|
|
82
|
+
* A collection of {@link ContextSensitivityInfo} instances describing the
|
|
83
|
+
* context sensitivities encountered during LL prediction for this decision.
|
|
84
|
+
*/
|
|
85
|
+
contextSensitivities;
|
|
86
|
+
/**
|
|
87
|
+
* A collection of {@link DecisionEventInfo} instances describing the parse errors
|
|
88
|
+
* identified during calls to {@link ParserATNSimulator.adaptivePredict} for
|
|
89
|
+
* this decision.
|
|
90
|
+
*/
|
|
91
|
+
errors;
|
|
92
|
+
/**
|
|
93
|
+
* A collection of {@link AmbiguityInfo} instances describing the
|
|
94
|
+
* ambiguities encountered during LL prediction for this decision.
|
|
95
|
+
*/
|
|
96
|
+
ambiguities;
|
|
97
|
+
/**
|
|
98
|
+
* A collection of {@link PredicateEvalInfo} instances describing the
|
|
99
|
+
* results of evaluating individual predicates during prediction for this
|
|
100
|
+
* decision.
|
|
101
|
+
*/
|
|
102
|
+
predicateEvals;
|
|
103
|
+
/**
|
|
104
|
+
* The total number of ATN transitions required during SLL prediction for
|
|
105
|
+
* this decision. An ATN transition is determined by the number of times the
|
|
106
|
+
* DFA does not contain an edge that is required for prediction, resulting
|
|
107
|
+
* in on-the-fly computation of that edge.
|
|
108
|
+
/**
|
|
109
|
+
* If DFA caching of SLL transitions is employed by the implementation, ATN
|
|
110
|
+
* computation may cache the computed edge for efficient lookup during
|
|
111
|
+
* future parsing of this decision. Otherwise, the SLL parsing algorithm
|
|
112
|
+
* will use ATN transitions exclusively.
|
|
113
|
+
*
|
|
114
|
+
* @see sllDFATransitions
|
|
115
|
+
* @see ParserATNSimulator.computeTargetState
|
|
116
|
+
* @see LexerATNSimulator.computeTargetState
|
|
117
|
+
*/
|
|
118
|
+
sllATNTransitions = 0;
|
|
119
|
+
/**
|
|
120
|
+
* The total number of DFA transitions required during SLL prediction for
|
|
121
|
+
* this decision.
|
|
122
|
+
*
|
|
123
|
+
* If the ATN simulator implementation does not use DFA caching for SLL
|
|
124
|
+
* transitions, this value will be 0.
|
|
125
|
+
*
|
|
126
|
+
* @see ParserATNSimulator.getExistingTargetState
|
|
127
|
+
* @see LexerATNSimulator.getExistingTargetState
|
|
128
|
+
*/
|
|
129
|
+
sllDFATransitions = 0;
|
|
130
|
+
/**
|
|
131
|
+
* Gets the total number of times SLL prediction completed in a conflict
|
|
132
|
+
* state, resulting in fallback to LL prediction.
|
|
133
|
+
*
|
|
134
|
+
* Note that this value is not related to whether or not
|
|
135
|
+
* {@link PredictionMode.SLL} may be used successfully with a particular
|
|
136
|
+
* grammar. If the ambiguity resolution algorithm applied to the SLL
|
|
137
|
+
* conflicts for this decision produce the same result as LL prediction for
|
|
138
|
+
* this decision, {@link PredictionMode.SLL} would produce the same overall
|
|
139
|
+
* parsing result as {@link PredictionMode.LL}.
|
|
140
|
+
*/
|
|
141
|
+
llFallback = 0;
|
|
142
|
+
/**
|
|
143
|
+
* The total number of ATN transitions required during LL prediction for
|
|
144
|
+
* this decision. An ATN transition is determined by the number of times the
|
|
145
|
+
* DFA does not contain an edge that is required for prediction, resulting
|
|
146
|
+
* in on-the-fly computation of that edge.
|
|
147
|
+
*
|
|
148
|
+
* If DFA caching of LL transitions is employed by the implementation, ATN
|
|
149
|
+
* computation may cache the computed edge for efficient lookup during
|
|
150
|
+
* future parsing of this decision. Otherwise, the LL parsing algorithm will
|
|
151
|
+
* use ATN transitions exclusively.
|
|
152
|
+
*
|
|
153
|
+
* @see llDFATransitions
|
|
154
|
+
* @see ParserATNSimulator.computeTargetState
|
|
155
|
+
* @see LexerATNSimulator.computeTargetState
|
|
156
|
+
*/
|
|
157
|
+
llATNTransitions = 0;
|
|
158
|
+
/**
|
|
159
|
+
* The total number of DFA transitions required during LL prediction for
|
|
160
|
+
* this decision.
|
|
161
|
+
*
|
|
162
|
+
* If the ATN simulator implementation does not use DFA caching for LL
|
|
163
|
+
* transitions, this value will be 0.
|
|
164
|
+
*
|
|
165
|
+
* @see ParserATNSimulator.getExistingTargetState
|
|
166
|
+
* @see LexerATNSimulator.getExistingTargetState
|
|
167
|
+
*/
|
|
168
|
+
llDFATransitions = 0;
|
|
169
|
+
/**
|
|
170
|
+
* Constructs a new instance of the {@link DecisionInfo} class to contain
|
|
171
|
+
* statistics for a particular decision.
|
|
172
|
+
*
|
|
173
|
+
* @param decision The decision number
|
|
174
|
+
*/
|
|
175
|
+
constructor(decision) {
|
|
176
|
+
this.decision = decision;
|
|
177
|
+
this.contextSensitivities = [];
|
|
178
|
+
this.errors = [];
|
|
179
|
+
this.ambiguities = [];
|
|
180
|
+
this.predicateEvals = [];
|
|
181
|
+
}
|
|
182
|
+
toString() {
|
|
183
|
+
return "{decision=" + this.decision + ", contextSensitivities=" + this.contextSensitivities.length + ", errors=" + this.errors.length + ", ambiguities=" + this.ambiguities.length + ", sllLookahead=" + this.sllTotalLook + ", sllATNTransitions=" + this.sllATNTransitions + ", sllDFATransitions=" + this.sllDFATransitions + ", llFallback=" + this.llFallback + ", llLookahead=" + this.llTotalLook + ", llATNTransitions=" + this.llATNTransitions + "}";
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
export {
|
|
187
|
+
DecisionInfo
|
|
188
|
+
};
|