did_parser 1.0.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.
- checksums.yaml +7 -0
- data/Gemfile +12 -0
- data/Rakefile +28 -0
- data/did_parser.gemspec +31 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRErrorListener.cpp +10 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRErrorListener.h +167 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRErrorStrategy.cpp +10 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRErrorStrategy.h +121 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRFileStream.cpp +23 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRFileStream.h +30 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRInputStream.cpp +180 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRInputStream.h +79 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/BailErrorStrategy.cpp +61 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/BailErrorStrategy.h +59 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/BaseErrorListener.cpp +25 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/BaseErrorListener.h +36 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/BufferedTokenStream.cpp +414 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/BufferedTokenStream.h +200 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/CharStream.cpp +11 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/CharStream.h +37 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/CommonToken.cpp +193 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/CommonToken.h +158 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/CommonTokenFactory.cpp +39 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/CommonTokenFactory.h +74 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/CommonTokenStream.cpp +78 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/CommonTokenStream.h +79 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ConsoleErrorListener.cpp +15 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ConsoleErrorListener.h +35 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/DefaultErrorStrategy.cpp +336 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/DefaultErrorStrategy.h +466 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/DiagnosticErrorListener.cpp +84 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/DiagnosticErrorListener.h +80 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/Exceptions.cpp +64 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/Exceptions.h +99 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/FailedPredicateException.cpp +52 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/FailedPredicateException.h +32 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/InputMismatchException.cpp +18 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/InputMismatchException.h +24 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/IntStream.cpp +12 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/IntStream.h +218 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/InterpreterRuleContext.cpp +19 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/InterpreterRuleContext.h +45 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/Lexer.cpp +294 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/Lexer.h +196 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.cpp +60 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h +46 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerNoViableAltException.cpp +36 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerNoViableAltException.h +31 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ListTokenSource.cpp +92 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ListTokenSource.h +88 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/NoViableAltException.cpp +46 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/NoViableAltException.h +42 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/Parser.cpp +668 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/Parser.h +461 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ParserInterpreter.cpp +294 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ParserInterpreter.h +173 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ParserRuleContext.cpp +138 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ParserRuleContext.h +147 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ProxyErrorListener.cpp +53 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/ProxyErrorListener.h +38 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/RecognitionException.cpp +65 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/RecognitionException.h +98 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/Recognizer.cpp +156 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/Recognizer.h +159 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/RuleContext.cpp +144 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/RuleContext.h +141 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/RuleContextWithAltNum.cpp +27 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/RuleContextWithAltNum.h +32 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/RuntimeMetaData.cpp +54 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/RuntimeMetaData.h +155 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/Token.cpp +9 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/Token.h +92 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/TokenFactory.h +30 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/TokenSource.cpp +9 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/TokenSource.h +85 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/TokenStream.cpp +11 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/TokenStream.h +137 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/TokenStreamRewriter.cpp +425 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/TokenStreamRewriter.h +295 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/UnbufferedCharStream.cpp +208 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/UnbufferedCharStream.h +117 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/UnbufferedTokenStream.cpp +270 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/UnbufferedTokenStream.h +115 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/Version.h +42 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/Vocabulary.cpp +64 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/Vocabulary.h +177 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/WritableToken.cpp +9 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/WritableToken.h +23 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/antlr4-common.h +98 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/antlr4-runtime.h +169 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATN.cpp +158 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATN.h +132 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNConfig.cpp +106 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNConfig.h +157 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNConfigSet.cpp +232 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNConfigSet.h +156 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNDeserializationOptions.cpp +54 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNDeserializationOptions.h +48 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNDeserializer.cpp +629 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNDeserializer.h +32 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNSimulator.cpp +33 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNSimulator.h +71 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNState.cpp +56 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNState.h +139 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNStateType.cpp +33 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNStateType.h +36 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNType.h +20 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ActionTransition.cpp +29 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ActionTransition.h +35 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/AmbiguityInfo.cpp +16 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/AmbiguityInfo.h +68 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ArrayPredictionContext.cpp +109 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ArrayPredictionContext.h +51 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/AtomTransition.cpp +27 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/AtomTransition.h +33 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/BasicBlockStartState.h +24 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/BasicState.h +23 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/BlockEndState.h +26 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/BlockStartState.h +30 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ContextSensitivityInfo.cpp +14 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ContextSensitivityInfo.h +47 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/DecisionEventInfo.cpp +14 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/DecisionEventInfo.h +70 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/DecisionInfo.cpp +25 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/DecisionInfo.h +227 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/DecisionState.cpp +12 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/DecisionState.h +34 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/EpsilonTransition.cpp +31 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/EpsilonTransition.h +42 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ErrorInfo.cpp +15 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ErrorInfo.h +43 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LL1Analyzer.cpp +189 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LL1Analyzer.h +76 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerATNConfig.cpp +67 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerATNConfig.h +44 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerATNSimulator.cpp +615 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerATNSimulator.h +199 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerAction.cpp +15 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerAction.h +100 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerActionExecutor.cpp +111 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerActionExecutor.h +128 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerActionType.h +57 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerChannelAction.cpp +43 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerChannelAction.h +59 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerCustomAction.cpp +45 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerCustomAction.h +75 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerIndexedCustomAction.cpp +57 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerIndexedCustomAction.h +76 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerModeAction.cpp +43 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerModeAction.h +57 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerMoreAction.cpp +36 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerMoreAction.h +53 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerPopModeAction.cpp +36 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerPopModeAction.h +53 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerPushModeAction.cpp +43 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerPushModeAction.h +57 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerSkipAction.cpp +36 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerSkipAction.h +51 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerTypeAction.cpp +43 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerTypeAction.h +51 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LookaheadEventInfo.cpp +16 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LookaheadEventInfo.h +42 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/LoopEndState.h +26 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/NotSetTransition.cpp +22 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/NotSetTransition.h +27 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/OrderedATNConfigSet.cpp +16 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/OrderedATNConfigSet.h +25 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ParseInfo.cpp +102 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ParseInfo.h +102 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ParserATNSimulator.cpp +1383 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ParserATNSimulator.h +911 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ParserATNSimulatorOptions.h +50 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PlusBlockStartState.h +29 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PlusLoopbackState.h +25 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PrecedencePredicateTransition.cpp +23 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PrecedencePredicateTransition.h +35 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredicateEvalInfo.cpp +17 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredicateEvalInfo.h +62 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredicateTransition.cpp +24 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredicateTransition.h +50 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContext.cpp +579 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContext.h +225 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContextCache.cpp +56 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContextCache.h +64 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContextMergeCache.cpp +167 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContextMergeCache.h +101 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContextMergeCacheOptions.h +71 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContextType.h +21 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionMode.cpp +202 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionMode.h +436 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ProfilingATNSimulator.cpp +179 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/ProfilingATNSimulator.h +60 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/RangeTransition.cpp +26 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/RangeTransition.h +31 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/RuleStartState.h +26 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/RuleStopState.h +27 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/RuleTransition.cpp +33 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/RuleTransition.h +42 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/SemanticContext.cpp +418 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/SemanticContext.h +233 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/SemanticContextType.h +23 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/SerializedATNView.h +101 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/SetTransition.cpp +28 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/SetTransition.h +38 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/SingletonPredictionContext.cpp +86 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/SingletonPredictionContext.h +43 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/StarBlockStartState.h +24 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/StarLoopEntryState.h +37 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/StarLoopbackState.cpp +19 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/StarLoopbackState.h +25 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/TokensStartState.h +24 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/Transition.cpp +36 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/Transition.h +65 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/TransitionType.cpp +27 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/TransitionType.h +33 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/WildcardTransition.cpp +21 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/WildcardTransition.h +27 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/dfa/DFA.cpp +115 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/dfa/DFA.h +96 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/dfa/DFASerializer.cpp +60 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/dfa/DFASerializer.h +32 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/dfa/DFAState.cpp +59 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/dfa/DFAState.h +153 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/dfa/LexerDFASerializer.cpp +17 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/dfa/LexerDFASerializer.h +22 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/misc/InterpreterDataReader.cpp +124 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/misc/InterpreterDataReader.h +33 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/misc/Interval.cpp +61 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/misc/Interval.h +84 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/misc/IntervalSet.cpp +508 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/misc/IntervalSet.h +190 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/misc/MurmurHash.cpp +120 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/misc/MurmurHash.h +102 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/misc/Predicate.cpp +4 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/misc/Predicate.h +21 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/support/Any.cpp +8 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/support/Any.h +16 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/support/Arrays.cpp +43 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/support/Arrays.h +149 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/support/BitSet.h +76 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/support/CPPUtils.cpp +207 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/support/CPPUtils.h +65 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/support/Casts.h +34 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/support/Declarations.h +161 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/support/StringUtils.cpp +38 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/support/StringUtils.h +16 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/support/Unicode.h +28 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/support/Utf8.cpp +242 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/support/Utf8.h +54 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/AbstractParseTreeVisitor.h +129 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/ErrorNode.h +24 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/ErrorNodeImpl.cpp +54 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/ErrorNodeImpl.h +43 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/IterativeParseTreeWalker.cpp +66 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/IterativeParseTreeWalker.h +53 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTree.cpp +12 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTree.h +111 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeListener.cpp +9 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeListener.h +39 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeProperty.h +50 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeType.h +22 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeVisitor.cpp +9 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeVisitor.h +57 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeWalker.cpp +48 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeWalker.h +55 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/TerminalNode.h +40 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/TerminalNodeImpl.cpp +54 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/TerminalNodeImpl.h +32 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/Trees.cpp +241 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/Trees.h +78 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/Chunk.cpp +9 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/Chunk.h +44 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/ParseTreeMatch.cpp +69 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/ParseTreeMatch.h +132 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/ParseTreePattern.cpp +64 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/ParseTreePattern.h +105 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/ParseTreePatternMatcher.cpp +370 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/ParseTreePatternMatcher.h +185 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/RuleTagToken.cpp +77 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/RuleTagToken.h +117 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/TagChunk.cpp +39 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/TagChunk.h +86 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/TextChunk.cpp +28 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/TextChunk.h +51 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/TokenTagToken.cpp +36 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/TokenTagToken.h +80 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPath.cpp +154 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPath.h +86 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathElement.cpp +31 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathElement.h +40 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathLexer.cpp +182 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathLexer.h +47 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathLexerErrorListener.cpp +13 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathLexerErrorListener.h +22 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathRuleAnywhereElement.cpp +20 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathRuleAnywhereElement.h +27 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathRuleElement.cpp +30 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathRuleElement.h +26 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathTokenAnywhereElement.cpp +20 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathTokenAnywhereElement.h +25 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathTokenElement.cpp +33 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathTokenElement.h +26 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathWildcardAnywhereElement.cpp +23 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathWildcardAnywhereElement.h +23 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathWildcardElement.cpp +24 -0
- data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathWildcardElement.h +23 -0
- data/ext/did_parser/antlrgen/DIDLexer.cpp +225 -0
- data/ext/did_parser/antlrgen/DIDLexer.h +52 -0
- data/ext/did_parser/antlrgen/DIDLexer.interp +93 -0
- data/ext/did_parser/antlrgen/DIDLexer.tokens +42 -0
- data/ext/did_parser/antlrgen/DIDParser.cpp +2042 -0
- data/ext/did_parser/antlrgen/DIDParser.h +537 -0
- data/ext/did_parser/antlrgen/DIDParser.interp +74 -0
- data/ext/did_parser/antlrgen/DIDParser.tokens +42 -0
- data/ext/did_parser/antlrgen/DIDParserBaseListener.cpp +7 -0
- data/ext/did_parser/antlrgen/DIDParserBaseListener.h +104 -0
- data/ext/did_parser/antlrgen/DIDParserBaseVisitor.cpp +7 -0
- data/ext/did_parser/antlrgen/DIDParserBaseVisitor.h +124 -0
- data/ext/did_parser/antlrgen/DIDParserListener.cpp +7 -0
- data/ext/did_parser/antlrgen/DIDParserListener.h +97 -0
- data/ext/did_parser/antlrgen/DIDParserVisitor.cpp +7 -0
- data/ext/did_parser/antlrgen/DIDParserVisitor.h +76 -0
- data/ext/did_parser/did_parser.cpp +2996 -0
- data/ext/did_parser/extconf.rb +38 -0
- data/lib/did_parser/version.rb +3 -0
- data/lib/did_parser.rb +2 -0
- metadata +382 -0
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
|
|
2
|
+
// Generated from ./DIDParser.g4 by ANTLR 4.10.1
|
|
3
|
+
|
|
4
|
+
#pragma once
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
#include "antlr4-runtime.h"
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DIDParser : public antlr4::Parser {
|
|
13
|
+
public:
|
|
14
|
+
enum {
|
|
15
|
+
BlockComment = 1, LineComment = 2, S = 3, Type = 4, Query = 5, Oneway = 6,
|
|
16
|
+
PrimType = 7, NumType = 8, OPT = 9, VEC = 10, RECORD = 11, VARIANT = 12,
|
|
17
|
+
Service = 13, FUNC = 14, Name = 15, LeftP = 16, RightP = 17, LeftB = 18,
|
|
18
|
+
RightB = 19, Arrow = 20, Colon = 21, Semicolon = 22, Eq = 23, Comma = 24
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
enum {
|
|
22
|
+
RuleProgram = 0, RuleDefination = 1, RuleActor = 2, RuleActortype = 3,
|
|
23
|
+
RuleDatatype = 4, RuleComptype = 5, RuleConstype = 6, RuleRecordfield = 7,
|
|
24
|
+
RuleVariantfield = 8, RuleReftype = 9, RuleFunctype = 10, RuleTuptype = 11,
|
|
25
|
+
RuleArgtypes = 12, RuleFuncann = 13, RuleMethodtype = 14
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
explicit DIDParser(antlr4::TokenStream *input);
|
|
29
|
+
|
|
30
|
+
DIDParser(antlr4::TokenStream *input, const antlr4::atn::ParserATNSimulatorOptions &options);
|
|
31
|
+
|
|
32
|
+
~DIDParser() override;
|
|
33
|
+
|
|
34
|
+
std::string getGrammarFileName() const override;
|
|
35
|
+
|
|
36
|
+
const antlr4::atn::ATN& getATN() const override;
|
|
37
|
+
|
|
38
|
+
const std::vector<std::string>& getRuleNames() const override;
|
|
39
|
+
|
|
40
|
+
const antlr4::dfa::Vocabulary& getVocabulary() const override;
|
|
41
|
+
|
|
42
|
+
antlr4::atn::SerializedATNView getSerializedATN() const override;
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class ProgramContext;
|
|
46
|
+
class DefinationContext;
|
|
47
|
+
class ActorContext;
|
|
48
|
+
class ActortypeContext;
|
|
49
|
+
class DatatypeContext;
|
|
50
|
+
class ComptypeContext;
|
|
51
|
+
class ConstypeContext;
|
|
52
|
+
class RecordfieldContext;
|
|
53
|
+
class VariantfieldContext;
|
|
54
|
+
class ReftypeContext;
|
|
55
|
+
class FunctypeContext;
|
|
56
|
+
class TuptypeContext;
|
|
57
|
+
class ArgtypesContext;
|
|
58
|
+
class FuncannContext;
|
|
59
|
+
class MethodtypeContext;
|
|
60
|
+
|
|
61
|
+
class ProgramContext : public antlr4::ParserRuleContext {
|
|
62
|
+
public:
|
|
63
|
+
ProgramContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
64
|
+
virtual size_t getRuleIndex() const override;
|
|
65
|
+
std::vector<DefinationContext *> defination();
|
|
66
|
+
DefinationContext* defination(size_t i);
|
|
67
|
+
ActorContext *actor();
|
|
68
|
+
|
|
69
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
70
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
71
|
+
|
|
72
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
73
|
+
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
ProgramContext* program();
|
|
77
|
+
|
|
78
|
+
class DefinationContext : public antlr4::ParserRuleContext {
|
|
79
|
+
public:
|
|
80
|
+
DefinationContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
81
|
+
virtual size_t getRuleIndex() const override;
|
|
82
|
+
antlr4::tree::TerminalNode *Type();
|
|
83
|
+
antlr4::tree::TerminalNode *Name();
|
|
84
|
+
antlr4::tree::TerminalNode *Eq();
|
|
85
|
+
DatatypeContext *datatype();
|
|
86
|
+
antlr4::tree::TerminalNode *Semicolon();
|
|
87
|
+
|
|
88
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
89
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
90
|
+
|
|
91
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
92
|
+
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
DefinationContext* defination();
|
|
96
|
+
|
|
97
|
+
class ActorContext : public antlr4::ParserRuleContext {
|
|
98
|
+
public:
|
|
99
|
+
ActorContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
100
|
+
virtual size_t getRuleIndex() const override;
|
|
101
|
+
antlr4::tree::TerminalNode *Service();
|
|
102
|
+
antlr4::tree::TerminalNode *Colon();
|
|
103
|
+
ActortypeContext *actortype();
|
|
104
|
+
std::vector<antlr4::tree::TerminalNode *> Name();
|
|
105
|
+
antlr4::tree::TerminalNode* Name(size_t i);
|
|
106
|
+
TuptypeContext *tuptype();
|
|
107
|
+
antlr4::tree::TerminalNode *Arrow();
|
|
108
|
+
|
|
109
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
110
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
111
|
+
|
|
112
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
113
|
+
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
ActorContext* actor();
|
|
117
|
+
|
|
118
|
+
class ActortypeContext : public antlr4::ParserRuleContext {
|
|
119
|
+
public:
|
|
120
|
+
ActortypeContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
121
|
+
virtual size_t getRuleIndex() const override;
|
|
122
|
+
antlr4::tree::TerminalNode *LeftB();
|
|
123
|
+
antlr4::tree::TerminalNode *RightB();
|
|
124
|
+
std::vector<MethodtypeContext *> methodtype();
|
|
125
|
+
MethodtypeContext* methodtype(size_t i);
|
|
126
|
+
std::vector<antlr4::tree::TerminalNode *> Semicolon();
|
|
127
|
+
antlr4::tree::TerminalNode* Semicolon(size_t i);
|
|
128
|
+
|
|
129
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
130
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
131
|
+
|
|
132
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
133
|
+
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
ActortypeContext* actortype();
|
|
137
|
+
|
|
138
|
+
class DatatypeContext : public antlr4::ParserRuleContext {
|
|
139
|
+
public:
|
|
140
|
+
DatatypeContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
141
|
+
|
|
142
|
+
DatatypeContext() = default;
|
|
143
|
+
void copyFrom(DatatypeContext *context);
|
|
144
|
+
using antlr4::ParserRuleContext::copyFrom;
|
|
145
|
+
|
|
146
|
+
virtual size_t getRuleIndex() const override;
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
class PrimitiveContext : public DatatypeContext {
|
|
152
|
+
public:
|
|
153
|
+
PrimitiveContext(DatatypeContext *ctx);
|
|
154
|
+
|
|
155
|
+
antlr4::tree::TerminalNode *PrimType();
|
|
156
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
157
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
158
|
+
|
|
159
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
class ComponentContext : public DatatypeContext {
|
|
163
|
+
public:
|
|
164
|
+
ComponentContext(DatatypeContext *ctx);
|
|
165
|
+
|
|
166
|
+
ComptypeContext *comptype();
|
|
167
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
168
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
169
|
+
|
|
170
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
class NameContext : public DatatypeContext {
|
|
174
|
+
public:
|
|
175
|
+
NameContext(DatatypeContext *ctx);
|
|
176
|
+
|
|
177
|
+
antlr4::tree::TerminalNode *Name();
|
|
178
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
179
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
180
|
+
|
|
181
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
DatatypeContext* datatype();
|
|
185
|
+
|
|
186
|
+
class ComptypeContext : public antlr4::ParserRuleContext {
|
|
187
|
+
public:
|
|
188
|
+
ComptypeContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
189
|
+
virtual size_t getRuleIndex() const override;
|
|
190
|
+
ConstypeContext *constype();
|
|
191
|
+
ReftypeContext *reftype();
|
|
192
|
+
|
|
193
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
194
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
195
|
+
|
|
196
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
197
|
+
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
ComptypeContext* comptype();
|
|
201
|
+
|
|
202
|
+
class ConstypeContext : public antlr4::ParserRuleContext {
|
|
203
|
+
public:
|
|
204
|
+
ConstypeContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
205
|
+
|
|
206
|
+
ConstypeContext() = default;
|
|
207
|
+
void copyFrom(ConstypeContext *context);
|
|
208
|
+
using antlr4::ParserRuleContext::copyFrom;
|
|
209
|
+
|
|
210
|
+
virtual size_t getRuleIndex() const override;
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
class VariantContext : public ConstypeContext {
|
|
216
|
+
public:
|
|
217
|
+
VariantContext(ConstypeContext *ctx);
|
|
218
|
+
|
|
219
|
+
antlr4::tree::TerminalNode *VARIANT();
|
|
220
|
+
antlr4::tree::TerminalNode *LeftB();
|
|
221
|
+
std::vector<VariantfieldContext *> variantfield();
|
|
222
|
+
VariantfieldContext* variantfield(size_t i);
|
|
223
|
+
antlr4::tree::TerminalNode *RightB();
|
|
224
|
+
std::vector<antlr4::tree::TerminalNode *> Semicolon();
|
|
225
|
+
antlr4::tree::TerminalNode* Semicolon(size_t i);
|
|
226
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
227
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
228
|
+
|
|
229
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
class EmptyRecordContext : public ConstypeContext {
|
|
233
|
+
public:
|
|
234
|
+
EmptyRecordContext(ConstypeContext *ctx);
|
|
235
|
+
|
|
236
|
+
antlr4::tree::TerminalNode *RECORD();
|
|
237
|
+
antlr4::tree::TerminalNode *LeftB();
|
|
238
|
+
antlr4::tree::TerminalNode *RightB();
|
|
239
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
240
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
241
|
+
|
|
242
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
class EmptyVariantContext : public ConstypeContext {
|
|
246
|
+
public:
|
|
247
|
+
EmptyVariantContext(ConstypeContext *ctx);
|
|
248
|
+
|
|
249
|
+
antlr4::tree::TerminalNode *VARIANT();
|
|
250
|
+
antlr4::tree::TerminalNode *LeftB();
|
|
251
|
+
antlr4::tree::TerminalNode *RightB();
|
|
252
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
253
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
254
|
+
|
|
255
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
class OptionContext : public ConstypeContext {
|
|
259
|
+
public:
|
|
260
|
+
OptionContext(ConstypeContext *ctx);
|
|
261
|
+
|
|
262
|
+
antlr4::tree::TerminalNode *OPT();
|
|
263
|
+
DatatypeContext *datatype();
|
|
264
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
265
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
266
|
+
|
|
267
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
class RecordContext : public ConstypeContext {
|
|
271
|
+
public:
|
|
272
|
+
RecordContext(ConstypeContext *ctx);
|
|
273
|
+
|
|
274
|
+
antlr4::tree::TerminalNode *RECORD();
|
|
275
|
+
antlr4::tree::TerminalNode *LeftB();
|
|
276
|
+
std::vector<RecordfieldContext *> recordfield();
|
|
277
|
+
RecordfieldContext* recordfield(size_t i);
|
|
278
|
+
antlr4::tree::TerminalNode *RightB();
|
|
279
|
+
std::vector<antlr4::tree::TerminalNode *> Semicolon();
|
|
280
|
+
antlr4::tree::TerminalNode* Semicolon(size_t i);
|
|
281
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
282
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
283
|
+
|
|
284
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
class VectorContext : public ConstypeContext {
|
|
288
|
+
public:
|
|
289
|
+
VectorContext(ConstypeContext *ctx);
|
|
290
|
+
|
|
291
|
+
antlr4::tree::TerminalNode *VEC();
|
|
292
|
+
DatatypeContext *datatype();
|
|
293
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
294
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
295
|
+
|
|
296
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
ConstypeContext* constype();
|
|
300
|
+
|
|
301
|
+
class RecordfieldContext : public antlr4::ParserRuleContext {
|
|
302
|
+
public:
|
|
303
|
+
RecordfieldContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
304
|
+
|
|
305
|
+
RecordfieldContext() = default;
|
|
306
|
+
void copyFrom(RecordfieldContext *context);
|
|
307
|
+
using antlr4::ParserRuleContext::copyFrom;
|
|
308
|
+
|
|
309
|
+
virtual size_t getRuleIndex() const override;
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
class RecordDataContext : public RecordfieldContext {
|
|
315
|
+
public:
|
|
316
|
+
RecordDataContext(RecordfieldContext *ctx);
|
|
317
|
+
|
|
318
|
+
DatatypeContext *datatype();
|
|
319
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
320
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
321
|
+
|
|
322
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
class RecordKVContext : public RecordfieldContext {
|
|
326
|
+
public:
|
|
327
|
+
RecordKVContext(RecordfieldContext *ctx);
|
|
328
|
+
|
|
329
|
+
antlr4::tree::TerminalNode *Name();
|
|
330
|
+
antlr4::tree::TerminalNode *Colon();
|
|
331
|
+
DatatypeContext *datatype();
|
|
332
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
333
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
334
|
+
|
|
335
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
RecordfieldContext* recordfield();
|
|
339
|
+
|
|
340
|
+
class VariantfieldContext : public antlr4::ParserRuleContext {
|
|
341
|
+
public:
|
|
342
|
+
VariantfieldContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
343
|
+
|
|
344
|
+
VariantfieldContext() = default;
|
|
345
|
+
void copyFrom(VariantfieldContext *context);
|
|
346
|
+
using antlr4::ParserRuleContext::copyFrom;
|
|
347
|
+
|
|
348
|
+
virtual size_t getRuleIndex() const override;
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
class VariantNameContext : public VariantfieldContext {
|
|
354
|
+
public:
|
|
355
|
+
VariantNameContext(VariantfieldContext *ctx);
|
|
356
|
+
|
|
357
|
+
antlr4::tree::TerminalNode *Name();
|
|
358
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
359
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
360
|
+
|
|
361
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
class VariantKVContext : public VariantfieldContext {
|
|
365
|
+
public:
|
|
366
|
+
VariantKVContext(VariantfieldContext *ctx);
|
|
367
|
+
|
|
368
|
+
antlr4::tree::TerminalNode *Name();
|
|
369
|
+
antlr4::tree::TerminalNode *Colon();
|
|
370
|
+
DatatypeContext *datatype();
|
|
371
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
372
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
373
|
+
|
|
374
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
VariantfieldContext* variantfield();
|
|
378
|
+
|
|
379
|
+
class ReftypeContext : public antlr4::ParserRuleContext {
|
|
380
|
+
public:
|
|
381
|
+
ReftypeContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
382
|
+
virtual size_t getRuleIndex() const override;
|
|
383
|
+
antlr4::tree::TerminalNode *FUNC();
|
|
384
|
+
FunctypeContext *functype();
|
|
385
|
+
antlr4::tree::TerminalNode *Service();
|
|
386
|
+
ActortypeContext *actortype();
|
|
387
|
+
|
|
388
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
389
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
390
|
+
|
|
391
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
392
|
+
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
ReftypeContext* reftype();
|
|
396
|
+
|
|
397
|
+
class FunctypeContext : public antlr4::ParserRuleContext {
|
|
398
|
+
public:
|
|
399
|
+
FunctypeContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
400
|
+
virtual size_t getRuleIndex() const override;
|
|
401
|
+
std::vector<TuptypeContext *> tuptype();
|
|
402
|
+
TuptypeContext* tuptype(size_t i);
|
|
403
|
+
antlr4::tree::TerminalNode *Arrow();
|
|
404
|
+
FuncannContext *funcann();
|
|
405
|
+
|
|
406
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
407
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
408
|
+
|
|
409
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
410
|
+
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
FunctypeContext* functype();
|
|
414
|
+
|
|
415
|
+
class TuptypeContext : public antlr4::ParserRuleContext {
|
|
416
|
+
public:
|
|
417
|
+
TuptypeContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
418
|
+
|
|
419
|
+
TuptypeContext() = default;
|
|
420
|
+
void copyFrom(TuptypeContext *context);
|
|
421
|
+
using antlr4::ParserRuleContext::copyFrom;
|
|
422
|
+
|
|
423
|
+
virtual size_t getRuleIndex() const override;
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
class EmptyTupleContext : public TuptypeContext {
|
|
429
|
+
public:
|
|
430
|
+
EmptyTupleContext(TuptypeContext *ctx);
|
|
431
|
+
|
|
432
|
+
antlr4::tree::TerminalNode *LeftP();
|
|
433
|
+
antlr4::tree::TerminalNode *RightP();
|
|
434
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
435
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
436
|
+
|
|
437
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
class TupleContext : public TuptypeContext {
|
|
441
|
+
public:
|
|
442
|
+
TupleContext(TuptypeContext *ctx);
|
|
443
|
+
|
|
444
|
+
antlr4::tree::TerminalNode *LeftP();
|
|
445
|
+
ArgtypesContext *argtypes();
|
|
446
|
+
antlr4::tree::TerminalNode *RightP();
|
|
447
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
448
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
449
|
+
|
|
450
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
TuptypeContext* tuptype();
|
|
454
|
+
|
|
455
|
+
class ArgtypesContext : public antlr4::ParserRuleContext {
|
|
456
|
+
public:
|
|
457
|
+
ArgtypesContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
458
|
+
virtual size_t getRuleIndex() const override;
|
|
459
|
+
std::vector<DatatypeContext *> datatype();
|
|
460
|
+
DatatypeContext* datatype(size_t i);
|
|
461
|
+
std::vector<antlr4::tree::TerminalNode *> Comma();
|
|
462
|
+
antlr4::tree::TerminalNode* Comma(size_t i);
|
|
463
|
+
antlr4::tree::TerminalNode *Name();
|
|
464
|
+
antlr4::tree::TerminalNode *Colon();
|
|
465
|
+
|
|
466
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
467
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
468
|
+
|
|
469
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
470
|
+
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
ArgtypesContext* argtypes();
|
|
474
|
+
|
|
475
|
+
class FuncannContext : public antlr4::ParserRuleContext {
|
|
476
|
+
public:
|
|
477
|
+
FuncannContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
478
|
+
|
|
479
|
+
FuncannContext() = default;
|
|
480
|
+
void copyFrom(FuncannContext *context);
|
|
481
|
+
using antlr4::ParserRuleContext::copyFrom;
|
|
482
|
+
|
|
483
|
+
virtual size_t getRuleIndex() const override;
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
class QueryContext : public FuncannContext {
|
|
489
|
+
public:
|
|
490
|
+
QueryContext(FuncannContext *ctx);
|
|
491
|
+
|
|
492
|
+
antlr4::tree::TerminalNode *Query();
|
|
493
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
494
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
495
|
+
|
|
496
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
class OnewayContext : public FuncannContext {
|
|
500
|
+
public:
|
|
501
|
+
OnewayContext(FuncannContext *ctx);
|
|
502
|
+
|
|
503
|
+
antlr4::tree::TerminalNode *Oneway();
|
|
504
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
505
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
506
|
+
|
|
507
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
FuncannContext* funcann();
|
|
511
|
+
|
|
512
|
+
class MethodtypeContext : public antlr4::ParserRuleContext {
|
|
513
|
+
public:
|
|
514
|
+
MethodtypeContext(antlr4::ParserRuleContext *parent, size_t invokingState);
|
|
515
|
+
virtual size_t getRuleIndex() const override;
|
|
516
|
+
antlr4::tree::TerminalNode *Name();
|
|
517
|
+
antlr4::tree::TerminalNode *Colon();
|
|
518
|
+
FunctypeContext *functype();
|
|
519
|
+
|
|
520
|
+
virtual void enterRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
521
|
+
virtual void exitRule(antlr4::tree::ParseTreeListener *listener) override;
|
|
522
|
+
|
|
523
|
+
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
|
|
524
|
+
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
MethodtypeContext* methodtype();
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
// By default the static state used to implement the parser is lazily initialized during the first
|
|
531
|
+
// call to the constructor. You can call this function if you wish to initialize the static state
|
|
532
|
+
// ahead of time.
|
|
533
|
+
static void initialize();
|
|
534
|
+
|
|
535
|
+
private:
|
|
536
|
+
};
|
|
537
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
token literal names:
|
|
2
|
+
null
|
|
3
|
+
null
|
|
4
|
+
null
|
|
5
|
+
null
|
|
6
|
+
'type'
|
|
7
|
+
'query'
|
|
8
|
+
'oneway'
|
|
9
|
+
null
|
|
10
|
+
null
|
|
11
|
+
'opt'
|
|
12
|
+
'vec'
|
|
13
|
+
'record'
|
|
14
|
+
'variant'
|
|
15
|
+
'service'
|
|
16
|
+
'func'
|
|
17
|
+
null
|
|
18
|
+
'('
|
|
19
|
+
')'
|
|
20
|
+
'{'
|
|
21
|
+
'}'
|
|
22
|
+
'->'
|
|
23
|
+
':'
|
|
24
|
+
';'
|
|
25
|
+
'='
|
|
26
|
+
','
|
|
27
|
+
|
|
28
|
+
token symbolic names:
|
|
29
|
+
null
|
|
30
|
+
BlockComment
|
|
31
|
+
LineComment
|
|
32
|
+
S
|
|
33
|
+
Type
|
|
34
|
+
Query
|
|
35
|
+
Oneway
|
|
36
|
+
PrimType
|
|
37
|
+
NumType
|
|
38
|
+
OPT
|
|
39
|
+
VEC
|
|
40
|
+
RECORD
|
|
41
|
+
VARIANT
|
|
42
|
+
Service
|
|
43
|
+
FUNC
|
|
44
|
+
Name
|
|
45
|
+
LeftP
|
|
46
|
+
RightP
|
|
47
|
+
LeftB
|
|
48
|
+
RightB
|
|
49
|
+
Arrow
|
|
50
|
+
Colon
|
|
51
|
+
Semicolon
|
|
52
|
+
Eq
|
|
53
|
+
Comma
|
|
54
|
+
|
|
55
|
+
rule names:
|
|
56
|
+
program
|
|
57
|
+
defination
|
|
58
|
+
actor
|
|
59
|
+
actortype
|
|
60
|
+
datatype
|
|
61
|
+
comptype
|
|
62
|
+
constype
|
|
63
|
+
recordfield
|
|
64
|
+
variantfield
|
|
65
|
+
reftype
|
|
66
|
+
functype
|
|
67
|
+
tuptype
|
|
68
|
+
argtypes
|
|
69
|
+
funcann
|
|
70
|
+
methodtype
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
atn:
|
|
74
|
+
[4, 1, 24, 178, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 1, 0, 5, 0, 32, 8, 0, 10, 0, 12, 0, 35, 9, 0, 1, 0, 3, 0, 38, 8, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 3, 2, 48, 8, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 54, 8, 2, 1, 2, 1, 2, 3, 2, 58, 8, 2, 1, 3, 1, 3, 1, 3, 1, 3, 5, 3, 64, 8, 3, 10, 3, 12, 3, 67, 9, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 3, 4, 74, 8, 4, 1, 5, 1, 5, 3, 5, 78, 8, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 5, 6, 92, 8, 6, 10, 6, 12, 6, 95, 9, 6, 1, 6, 3, 6, 98, 8, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 5, 6, 110, 8, 6, 10, 6, 12, 6, 113, 9, 6, 1, 6, 3, 6, 116, 8, 6, 1, 6, 1, 6, 3, 6, 120, 8, 6, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 126, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 132, 8, 8, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 138, 8, 9, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10, 144, 8, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 152, 8, 11, 1, 12, 1, 12, 1, 12, 5, 12, 157, 8, 12, 10, 12, 12, 12, 160, 9, 12, 1, 12, 3, 12, 163, 8, 12, 1, 12, 1, 12, 1, 12, 3, 12, 168, 8, 12, 1, 13, 1, 13, 3, 13, 172, 8, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 0, 0, 15, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 0, 0, 189, 0, 33, 1, 0, 0, 0, 2, 39, 1, 0, 0, 0, 4, 45, 1, 0, 0, 0, 6, 59, 1, 0, 0, 0, 8, 73, 1, 0, 0, 0, 10, 77, 1, 0, 0, 0, 12, 119, 1, 0, 0, 0, 14, 125, 1, 0, 0, 0, 16, 131, 1, 0, 0, 0, 18, 137, 1, 0, 0, 0, 20, 139, 1, 0, 0, 0, 22, 151, 1, 0, 0, 0, 24, 167, 1, 0, 0, 0, 26, 171, 1, 0, 0, 0, 28, 173, 1, 0, 0, 0, 30, 32, 3, 2, 1, 0, 31, 30, 1, 0, 0, 0, 32, 35, 1, 0, 0, 0, 33, 31, 1, 0, 0, 0, 33, 34, 1, 0, 0, 0, 34, 37, 1, 0, 0, 0, 35, 33, 1, 0, 0, 0, 36, 38, 3, 4, 2, 0, 37, 36, 1, 0, 0, 0, 37, 38, 1, 0, 0, 0, 38, 1, 1, 0, 0, 0, 39, 40, 5, 4, 0, 0, 40, 41, 5, 15, 0, 0, 41, 42, 5, 23, 0, 0, 42, 43, 3, 8, 4, 0, 43, 44, 5, 22, 0, 0, 44, 3, 1, 0, 0, 0, 45, 47, 5, 13, 0, 0, 46, 48, 5, 15, 0, 0, 47, 46, 1, 0, 0, 0, 47, 48, 1, 0, 0, 0, 48, 49, 1, 0, 0, 0, 49, 53, 5, 21, 0, 0, 50, 51, 3, 22, 11, 0, 51, 52, 5, 20, 0, 0, 52, 54, 1, 0, 0, 0, 53, 50, 1, 0, 0, 0, 53, 54, 1, 0, 0, 0, 54, 57, 1, 0, 0, 0, 55, 58, 3, 6, 3, 0, 56, 58, 5, 15, 0, 0, 57, 55, 1, 0, 0, 0, 57, 56, 1, 0, 0, 0, 58, 5, 1, 0, 0, 0, 59, 65, 5, 18, 0, 0, 60, 61, 3, 28, 14, 0, 61, 62, 5, 22, 0, 0, 62, 64, 1, 0, 0, 0, 63, 60, 1, 0, 0, 0, 64, 67, 1, 0, 0, 0, 65, 63, 1, 0, 0, 0, 65, 66, 1, 0, 0, 0, 66, 68, 1, 0, 0, 0, 67, 65, 1, 0, 0, 0, 68, 69, 5, 19, 0, 0, 69, 7, 1, 0, 0, 0, 70, 74, 5, 15, 0, 0, 71, 74, 5, 7, 0, 0, 72, 74, 3, 10, 5, 0, 73, 70, 1, 0, 0, 0, 73, 71, 1, 0, 0, 0, 73, 72, 1, 0, 0, 0, 74, 9, 1, 0, 0, 0, 75, 78, 3, 12, 6, 0, 76, 78, 3, 18, 9, 0, 77, 75, 1, 0, 0, 0, 77, 76, 1, 0, 0, 0, 78, 11, 1, 0, 0, 0, 79, 80, 5, 9, 0, 0, 80, 120, 3, 8, 4, 0, 81, 82, 5, 10, 0, 0, 82, 120, 3, 8, 4, 0, 83, 84, 5, 11, 0, 0, 84, 85, 5, 18, 0, 0, 85, 120, 5, 19, 0, 0, 86, 87, 5, 11, 0, 0, 87, 88, 5, 18, 0, 0, 88, 93, 3, 14, 7, 0, 89, 90, 5, 22, 0, 0, 90, 92, 3, 14, 7, 0, 91, 89, 1, 0, 0, 0, 92, 95, 1, 0, 0, 0, 93, 91, 1, 0, 0, 0, 93, 94, 1, 0, 0, 0, 94, 97, 1, 0, 0, 0, 95, 93, 1, 0, 0, 0, 96, 98, 5, 22, 0, 0, 97, 96, 1, 0, 0, 0, 97, 98, 1, 0, 0, 0, 98, 99, 1, 0, 0, 0, 99, 100, 5, 19, 0, 0, 100, 120, 1, 0, 0, 0, 101, 102, 5, 12, 0, 0, 102, 103, 5, 18, 0, 0, 103, 120, 5, 19, 0, 0, 104, 105, 5, 12, 0, 0, 105, 106, 5, 18, 0, 0, 106, 111, 3, 16, 8, 0, 107, 108, 5, 22, 0, 0, 108, 110, 3, 16, 8, 0, 109, 107, 1, 0, 0, 0, 110, 113, 1, 0, 0, 0, 111, 109, 1, 0, 0, 0, 111, 112, 1, 0, 0, 0, 112, 115, 1, 0, 0, 0, 113, 111, 1, 0, 0, 0, 114, 116, 5, 22, 0, 0, 115, 114, 1, 0, 0, 0, 115, 116, 1, 0, 0, 0, 116, 117, 1, 0, 0, 0, 117, 118, 5, 19, 0, 0, 118, 120, 1, 0, 0, 0, 119, 79, 1, 0, 0, 0, 119, 81, 1, 0, 0, 0, 119, 83, 1, 0, 0, 0, 119, 86, 1, 0, 0, 0, 119, 101, 1, 0, 0, 0, 119, 104, 1, 0, 0, 0, 120, 13, 1, 0, 0, 0, 121, 122, 5, 15, 0, 0, 122, 123, 5, 21, 0, 0, 123, 126, 3, 8, 4, 0, 124, 126, 3, 8, 4, 0, 125, 121, 1, 0, 0, 0, 125, 124, 1, 0, 0, 0, 126, 15, 1, 0, 0, 0, 127, 128, 5, 15, 0, 0, 128, 129, 5, 21, 0, 0, 129, 132, 3, 8, 4, 0, 130, 132, 5, 15, 0, 0, 131, 127, 1, 0, 0, 0, 131, 130, 1, 0, 0, 0, 132, 17, 1, 0, 0, 0, 133, 134, 5, 14, 0, 0, 134, 138, 3, 20, 10, 0, 135, 136, 5, 13, 0, 0, 136, 138, 3, 6, 3, 0, 137, 133, 1, 0, 0, 0, 137, 135, 1, 0, 0, 0, 138, 19, 1, 0, 0, 0, 139, 140, 3, 22, 11, 0, 140, 141, 5, 20, 0, 0, 141, 143, 3, 22, 11, 0, 142, 144, 3, 26, 13, 0, 143, 142, 1, 0, 0, 0, 143, 144, 1, 0, 0, 0, 144, 21, 1, 0, 0, 0, 145, 146, 5, 16, 0, 0, 146, 152, 5, 17, 0, 0, 147, 148, 5, 16, 0, 0, 148, 149, 3, 24, 12, 0, 149, 150, 5, 17, 0, 0, 150, 152, 1, 0, 0, 0, 151, 145, 1, 0, 0, 0, 151, 147, 1, 0, 0, 0, 152, 23, 1, 0, 0, 0, 153, 158, 3, 8, 4, 0, 154, 155, 5, 24, 0, 0, 155, 157, 3, 8, 4, 0, 156, 154, 1, 0, 0, 0, 157, 160, 1, 0, 0, 0, 158, 156, 1, 0, 0, 0, 158, 159, 1, 0, 0, 0, 159, 162, 1, 0, 0, 0, 160, 158, 1, 0, 0, 0, 161, 163, 5, 24, 0, 0, 162, 161, 1, 0, 0, 0, 162, 163, 1, 0, 0, 0, 163, 168, 1, 0, 0, 0, 164, 165, 5, 15, 0, 0, 165, 166, 5, 21, 0, 0, 166, 168, 3, 8, 4, 0, 167, 153, 1, 0, 0, 0, 167, 164, 1, 0, 0, 0, 168, 25, 1, 0, 0, 0, 169, 172, 5, 5, 0, 0, 170, 172, 5, 6, 0, 0, 171, 169, 1, 0, 0, 0, 171, 170, 1, 0, 0, 0, 172, 27, 1, 0, 0, 0, 173, 174, 5, 15, 0, 0, 174, 175, 5, 21, 0, 0, 175, 176, 3, 20, 10, 0, 176, 29, 1, 0, 0, 0, 22, 33, 37, 47, 53, 57, 65, 73, 77, 93, 97, 111, 115, 119, 125, 131, 137, 143, 151, 158, 162, 167, 171]
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
BlockComment=1
|
|
2
|
+
LineComment=2
|
|
3
|
+
S=3
|
|
4
|
+
Type=4
|
|
5
|
+
Query=5
|
|
6
|
+
Oneway=6
|
|
7
|
+
PrimType=7
|
|
8
|
+
NumType=8
|
|
9
|
+
OPT=9
|
|
10
|
+
VEC=10
|
|
11
|
+
RECORD=11
|
|
12
|
+
VARIANT=12
|
|
13
|
+
Service=13
|
|
14
|
+
FUNC=14
|
|
15
|
+
Name=15
|
|
16
|
+
LeftP=16
|
|
17
|
+
RightP=17
|
|
18
|
+
LeftB=18
|
|
19
|
+
RightB=19
|
|
20
|
+
Arrow=20
|
|
21
|
+
Colon=21
|
|
22
|
+
Semicolon=22
|
|
23
|
+
Eq=23
|
|
24
|
+
Comma=24
|
|
25
|
+
'type'=4
|
|
26
|
+
'query'=5
|
|
27
|
+
'oneway'=6
|
|
28
|
+
'opt'=9
|
|
29
|
+
'vec'=10
|
|
30
|
+
'record'=11
|
|
31
|
+
'variant'=12
|
|
32
|
+
'service'=13
|
|
33
|
+
'func'=14
|
|
34
|
+
'('=16
|
|
35
|
+
')'=17
|
|
36
|
+
'{'=18
|
|
37
|
+
'}'=19
|
|
38
|
+
'->'=20
|
|
39
|
+
':'=21
|
|
40
|
+
';'=22
|
|
41
|
+
'='=23
|
|
42
|
+
','=24
|