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,23 @@
|
|
|
1
|
+
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
|
|
2
|
+
* Use of this file is governed by the BSD 3-clause license that
|
|
3
|
+
* can be found in the LICENSE.txt file in the project root.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
#pragma once
|
|
7
|
+
|
|
8
|
+
#include "XPathElement.h"
|
|
9
|
+
|
|
10
|
+
namespace antlr4 {
|
|
11
|
+
namespace tree {
|
|
12
|
+
namespace xpath {
|
|
13
|
+
|
|
14
|
+
class ANTLR4CPP_PUBLIC XPathWildcardAnywhereElement : public XPathElement {
|
|
15
|
+
public:
|
|
16
|
+
XPathWildcardAnywhereElement();
|
|
17
|
+
|
|
18
|
+
virtual std::vector<ParseTree *> evaluate(ParseTree *t) override;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
} // namespace xpath
|
|
22
|
+
} // namespace tree
|
|
23
|
+
} // namespace antlr4
|
data/ext/did_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathWildcardElement.cpp
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
|
|
2
|
+
* Use of this file is governed by the BSD 3-clause license that
|
|
3
|
+
* can be found in the LICENSE.txt file in the project root.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
#include "XPath.h"
|
|
7
|
+
#include "tree/ParseTree.h"
|
|
8
|
+
#include "tree/Trees.h"
|
|
9
|
+
|
|
10
|
+
#include "XPathWildcardElement.h"
|
|
11
|
+
|
|
12
|
+
using namespace antlr4::tree;
|
|
13
|
+
using namespace antlr4::tree::xpath;
|
|
14
|
+
|
|
15
|
+
XPathWildcardElement::XPathWildcardElement() : XPathElement(XPath::WILDCARD) {
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
std::vector<ParseTree *> XPathWildcardElement::evaluate(ParseTree *t) {
|
|
19
|
+
if (_invert) {
|
|
20
|
+
return {}; // !* is weird but valid (empty)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return t->children;
|
|
24
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
|
|
2
|
+
* Use of this file is governed by the BSD 3-clause license that
|
|
3
|
+
* can be found in the LICENSE.txt file in the project root.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
#pragma once
|
|
7
|
+
|
|
8
|
+
#include "XPathElement.h"
|
|
9
|
+
|
|
10
|
+
namespace antlr4 {
|
|
11
|
+
namespace tree {
|
|
12
|
+
namespace xpath {
|
|
13
|
+
|
|
14
|
+
class ANTLR4CPP_PUBLIC XPathWildcardElement : public XPathElement {
|
|
15
|
+
public:
|
|
16
|
+
XPathWildcardElement();
|
|
17
|
+
|
|
18
|
+
virtual std::vector<ParseTree *> evaluate(ParseTree *t) override;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
} // namespace xpath
|
|
22
|
+
} // namespace tree
|
|
23
|
+
} // namespace antlr4
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
|
|
2
|
+
// Generated from ./DIDLexer.g4 by ANTLR 4.10.1
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
#include "DIDLexer.h"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
using namespace antlr4;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
using namespace antlr4;
|
|
13
|
+
|
|
14
|
+
namespace {
|
|
15
|
+
|
|
16
|
+
struct DIDLexerStaticData final {
|
|
17
|
+
DIDLexerStaticData(std::vector<std::string> ruleNames,
|
|
18
|
+
std::vector<std::string> channelNames,
|
|
19
|
+
std::vector<std::string> modeNames,
|
|
20
|
+
std::vector<std::string> literalNames,
|
|
21
|
+
std::vector<std::string> symbolicNames)
|
|
22
|
+
: ruleNames(std::move(ruleNames)), channelNames(std::move(channelNames)),
|
|
23
|
+
modeNames(std::move(modeNames)), literalNames(std::move(literalNames)),
|
|
24
|
+
symbolicNames(std::move(symbolicNames)),
|
|
25
|
+
vocabulary(this->literalNames, this->symbolicNames) {}
|
|
26
|
+
|
|
27
|
+
DIDLexerStaticData(const DIDLexerStaticData&) = delete;
|
|
28
|
+
DIDLexerStaticData(DIDLexerStaticData&&) = delete;
|
|
29
|
+
DIDLexerStaticData& operator=(const DIDLexerStaticData&) = delete;
|
|
30
|
+
DIDLexerStaticData& operator=(DIDLexerStaticData&&) = delete;
|
|
31
|
+
|
|
32
|
+
std::vector<antlr4::dfa::DFA> decisionToDFA;
|
|
33
|
+
antlr4::atn::PredictionContextCache sharedContextCache;
|
|
34
|
+
const std::vector<std::string> ruleNames;
|
|
35
|
+
const std::vector<std::string> channelNames;
|
|
36
|
+
const std::vector<std::string> modeNames;
|
|
37
|
+
const std::vector<std::string> literalNames;
|
|
38
|
+
const std::vector<std::string> symbolicNames;
|
|
39
|
+
const antlr4::dfa::Vocabulary vocabulary;
|
|
40
|
+
antlr4::atn::SerializedATNView serializedATN;
|
|
41
|
+
std::unique_ptr<antlr4::atn::ATN> atn;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
std::once_flag didlexerLexerOnceFlag;
|
|
45
|
+
DIDLexerStaticData *didlexerLexerStaticData = nullptr;
|
|
46
|
+
|
|
47
|
+
void didlexerLexerInitialize() {
|
|
48
|
+
assert(didlexerLexerStaticData == nullptr);
|
|
49
|
+
auto staticData = std::make_unique<DIDLexerStaticData>(
|
|
50
|
+
std::vector<std::string>{
|
|
51
|
+
"BlockComment", "LineComment", "S", "Type", "Query", "Oneway", "PrimType",
|
|
52
|
+
"NumType", "OPT", "VEC", "RECORD", "VARIANT", "Service", "FUNC", "Letter",
|
|
53
|
+
"DIGIT", "NameChar", "NameStartChar", "Name", "LeftP", "RightP", "LeftB",
|
|
54
|
+
"RightB", "Arrow", "Colon", "Semicolon", "Eq", "Comma"
|
|
55
|
+
},
|
|
56
|
+
std::vector<std::string>{
|
|
57
|
+
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
|
|
58
|
+
},
|
|
59
|
+
std::vector<std::string>{
|
|
60
|
+
"DEFAULT_MODE"
|
|
61
|
+
},
|
|
62
|
+
std::vector<std::string>{
|
|
63
|
+
"", "", "", "", "'type'", "'query'", "'oneway'", "", "", "'opt'",
|
|
64
|
+
"'vec'", "'record'", "'variant'", "'service'", "'func'", "", "'('",
|
|
65
|
+
"')'", "'{'", "'}'", "'->'", "':'", "';'", "'='", "','"
|
|
66
|
+
},
|
|
67
|
+
std::vector<std::string>{
|
|
68
|
+
"", "BlockComment", "LineComment", "S", "Type", "Query", "Oneway",
|
|
69
|
+
"PrimType", "NumType", "OPT", "VEC", "RECORD", "VARIANT", "Service",
|
|
70
|
+
"FUNC", "Name", "LeftP", "RightP", "LeftB", "RightB", "Arrow", "Colon",
|
|
71
|
+
"Semicolon", "Eq", "Comma"
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
static const int32_t serializedATNSegment[] = {
|
|
75
|
+
4,0,24,280,6,-1,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,
|
|
76
|
+
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,
|
|
77
|
+
7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,
|
|
78
|
+
7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,1,0,
|
|
79
|
+
1,0,1,0,1,0,5,0,62,8,0,10,0,12,0,65,9,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,
|
|
80
|
+
1,1,1,5,1,76,8,1,10,1,12,1,79,9,1,1,1,1,1,1,2,1,2,1,2,1,2,1,3,1,3,1,3,
|
|
81
|
+
1,3,1,3,1,4,1,4,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,
|
|
82
|
+
6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,
|
|
83
|
+
1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,3,6,140,8,
|
|
84
|
+
6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,
|
|
85
|
+
1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,
|
|
86
|
+
7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,
|
|
87
|
+
1,7,1,7,1,7,1,7,1,7,1,7,3,7,200,8,7,1,8,1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,
|
|
88
|
+
10,1,10,1,10,1,10,1,10,1,10,1,10,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,
|
|
89
|
+
11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,
|
|
90
|
+
14,1,14,1,15,1,15,1,16,1,16,1,16,3,16,245,8,16,1,17,1,17,1,18,3,18,250,
|
|
91
|
+
8,18,1,18,1,18,5,18,254,8,18,10,18,12,18,257,9,18,1,18,3,18,260,8,18,
|
|
92
|
+
1,19,1,19,1,20,1,20,1,21,1,21,1,22,1,22,1,23,1,23,1,23,1,24,1,24,1,25,
|
|
93
|
+
1,25,1,26,1,26,1,27,1,27,1,63,0,28,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,
|
|
94
|
+
17,9,19,10,21,11,23,12,25,13,27,14,29,0,31,0,33,0,35,0,37,15,39,16,41,
|
|
95
|
+
17,43,18,45,19,47,20,49,21,51,22,53,23,55,24,1,0,5,2,0,10,10,13,13,3,
|
|
96
|
+
0,9,10,13,13,32,32,2,0,65,90,97,122,1,0,48,57,3,0,65,90,95,95,97,122,
|
|
97
|
+
299,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,
|
|
98
|
+
1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,
|
|
99
|
+
0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,
|
|
100
|
+
0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,
|
|
101
|
+
1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,1,57,1,0,0,0,3,71,1,0,0,0,5,82,1,0,
|
|
102
|
+
0,0,7,86,1,0,0,0,9,91,1,0,0,0,11,97,1,0,0,0,13,139,1,0,0,0,15,199,1,0,
|
|
103
|
+
0,0,17,201,1,0,0,0,19,205,1,0,0,0,21,209,1,0,0,0,23,216,1,0,0,0,25,224,
|
|
104
|
+
1,0,0,0,27,232,1,0,0,0,29,237,1,0,0,0,31,239,1,0,0,0,33,244,1,0,0,0,35,
|
|
105
|
+
246,1,0,0,0,37,249,1,0,0,0,39,261,1,0,0,0,41,263,1,0,0,0,43,265,1,0,0,
|
|
106
|
+
0,45,267,1,0,0,0,47,269,1,0,0,0,49,272,1,0,0,0,51,274,1,0,0,0,53,276,
|
|
107
|
+
1,0,0,0,55,278,1,0,0,0,57,58,5,47,0,0,58,59,5,42,0,0,59,63,1,0,0,0,60,
|
|
108
|
+
62,9,0,0,0,61,60,1,0,0,0,62,65,1,0,0,0,63,64,1,0,0,0,63,61,1,0,0,0,64,
|
|
109
|
+
66,1,0,0,0,65,63,1,0,0,0,66,67,5,42,0,0,67,68,5,47,0,0,68,69,1,0,0,0,
|
|
110
|
+
69,70,6,0,0,0,70,2,1,0,0,0,71,72,5,47,0,0,72,73,5,47,0,0,73,77,1,0,0,
|
|
111
|
+
0,74,76,8,0,0,0,75,74,1,0,0,0,76,79,1,0,0,0,77,75,1,0,0,0,77,78,1,0,0,
|
|
112
|
+
0,78,80,1,0,0,0,79,77,1,0,0,0,80,81,6,1,0,0,81,4,1,0,0,0,82,83,7,1,0,
|
|
113
|
+
0,83,84,1,0,0,0,84,85,6,2,0,0,85,6,1,0,0,0,86,87,5,116,0,0,87,88,5,121,
|
|
114
|
+
0,0,88,89,5,112,0,0,89,90,5,101,0,0,90,8,1,0,0,0,91,92,5,113,0,0,92,93,
|
|
115
|
+
5,117,0,0,93,94,5,101,0,0,94,95,5,114,0,0,95,96,5,121,0,0,96,10,1,0,0,
|
|
116
|
+
0,97,98,5,111,0,0,98,99,5,110,0,0,99,100,5,101,0,0,100,101,5,119,0,0,
|
|
117
|
+
101,102,5,97,0,0,102,103,5,121,0,0,103,12,1,0,0,0,104,140,3,15,7,0,105,
|
|
118
|
+
106,5,98,0,0,106,107,5,111,0,0,107,108,5,111,0,0,108,140,5,108,0,0,109,
|
|
119
|
+
110,5,116,0,0,110,111,5,101,0,0,111,112,5,120,0,0,112,140,5,116,0,0,113,
|
|
120
|
+
114,5,110,0,0,114,115,5,117,0,0,115,116,5,108,0,0,116,140,5,108,0,0,117,
|
|
121
|
+
118,5,114,0,0,118,119,5,101,0,0,119,120,5,115,0,0,120,121,5,101,0,0,121,
|
|
122
|
+
122,5,114,0,0,122,123,5,118,0,0,123,124,5,101,0,0,124,140,5,100,0,0,125,
|
|
123
|
+
126,5,101,0,0,126,127,5,109,0,0,127,128,5,112,0,0,128,129,5,116,0,0,129,
|
|
124
|
+
140,5,121,0,0,130,131,5,112,0,0,131,132,5,114,0,0,132,133,5,105,0,0,133,
|
|
125
|
+
134,5,110,0,0,134,135,5,99,0,0,135,136,5,105,0,0,136,137,5,112,0,0,137,
|
|
126
|
+
138,5,97,0,0,138,140,5,108,0,0,139,104,1,0,0,0,139,105,1,0,0,0,139,109,
|
|
127
|
+
1,0,0,0,139,113,1,0,0,0,139,117,1,0,0,0,139,125,1,0,0,0,139,130,1,0,0,
|
|
128
|
+
0,140,14,1,0,0,0,141,142,5,110,0,0,142,143,5,97,0,0,143,200,5,116,0,0,
|
|
129
|
+
144,145,5,110,0,0,145,146,5,97,0,0,146,147,5,116,0,0,147,200,5,56,0,0,
|
|
130
|
+
148,149,5,110,0,0,149,150,5,97,0,0,150,151,5,116,0,0,151,152,5,49,0,0,
|
|
131
|
+
152,200,5,54,0,0,153,154,5,110,0,0,154,155,5,97,0,0,155,156,5,116,0,0,
|
|
132
|
+
156,157,5,51,0,0,157,200,5,50,0,0,158,159,5,110,0,0,159,160,5,97,0,0,
|
|
133
|
+
160,161,5,116,0,0,161,162,5,54,0,0,162,200,5,52,0,0,163,164,5,105,0,0,
|
|
134
|
+
164,165,5,110,0,0,165,200,5,116,0,0,166,167,5,105,0,0,167,168,5,110,0,
|
|
135
|
+
0,168,169,5,116,0,0,169,200,5,56,0,0,170,171,5,105,0,0,171,172,5,110,
|
|
136
|
+
0,0,172,173,5,116,0,0,173,174,5,49,0,0,174,200,5,54,0,0,175,176,5,105,
|
|
137
|
+
0,0,176,177,5,110,0,0,177,178,5,116,0,0,178,179,5,51,0,0,179,200,5,50,
|
|
138
|
+
0,0,180,181,5,105,0,0,181,182,5,110,0,0,182,183,5,116,0,0,183,184,5,54,
|
|
139
|
+
0,0,184,200,5,52,0,0,185,186,5,102,0,0,186,187,5,108,0,0,187,188,5,111,
|
|
140
|
+
0,0,188,189,5,97,0,0,189,190,5,116,0,0,190,191,5,51,0,0,191,200,5,50,
|
|
141
|
+
0,0,192,193,5,102,0,0,193,194,5,108,0,0,194,195,5,111,0,0,195,196,5,97,
|
|
142
|
+
0,0,196,197,5,116,0,0,197,198,5,54,0,0,198,200,5,52,0,0,199,141,1,0,0,
|
|
143
|
+
0,199,144,1,0,0,0,199,148,1,0,0,0,199,153,1,0,0,0,199,158,1,0,0,0,199,
|
|
144
|
+
163,1,0,0,0,199,166,1,0,0,0,199,170,1,0,0,0,199,175,1,0,0,0,199,180,1,
|
|
145
|
+
0,0,0,199,185,1,0,0,0,199,192,1,0,0,0,200,16,1,0,0,0,201,202,5,111,0,
|
|
146
|
+
0,202,203,5,112,0,0,203,204,5,116,0,0,204,18,1,0,0,0,205,206,5,118,0,
|
|
147
|
+
0,206,207,5,101,0,0,207,208,5,99,0,0,208,20,1,0,0,0,209,210,5,114,0,0,
|
|
148
|
+
210,211,5,101,0,0,211,212,5,99,0,0,212,213,5,111,0,0,213,214,5,114,0,
|
|
149
|
+
0,214,215,5,100,0,0,215,22,1,0,0,0,216,217,5,118,0,0,217,218,5,97,0,0,
|
|
150
|
+
218,219,5,114,0,0,219,220,5,105,0,0,220,221,5,97,0,0,221,222,5,110,0,
|
|
151
|
+
0,222,223,5,116,0,0,223,24,1,0,0,0,224,225,5,115,0,0,225,226,5,101,0,
|
|
152
|
+
0,226,227,5,114,0,0,227,228,5,118,0,0,228,229,5,105,0,0,229,230,5,99,
|
|
153
|
+
0,0,230,231,5,101,0,0,231,26,1,0,0,0,232,233,5,102,0,0,233,234,5,117,
|
|
154
|
+
0,0,234,235,5,110,0,0,235,236,5,99,0,0,236,28,1,0,0,0,237,238,7,2,0,0,
|
|
155
|
+
238,30,1,0,0,0,239,240,7,3,0,0,240,32,1,0,0,0,241,245,3,35,17,0,242,245,
|
|
156
|
+
5,95,0,0,243,245,3,31,15,0,244,241,1,0,0,0,244,242,1,0,0,0,244,243,1,
|
|
157
|
+
0,0,0,245,34,1,0,0,0,246,247,7,4,0,0,247,36,1,0,0,0,248,250,5,34,0,0,
|
|
158
|
+
249,248,1,0,0,0,249,250,1,0,0,0,250,251,1,0,0,0,251,255,3,35,17,0,252,
|
|
159
|
+
254,3,33,16,0,253,252,1,0,0,0,254,257,1,0,0,0,255,253,1,0,0,0,255,256,
|
|
160
|
+
1,0,0,0,256,259,1,0,0,0,257,255,1,0,0,0,258,260,5,34,0,0,259,258,1,0,
|
|
161
|
+
0,0,259,260,1,0,0,0,260,38,1,0,0,0,261,262,5,40,0,0,262,40,1,0,0,0,263,
|
|
162
|
+
264,5,41,0,0,264,42,1,0,0,0,265,266,5,123,0,0,266,44,1,0,0,0,267,268,
|
|
163
|
+
5,125,0,0,268,46,1,0,0,0,269,270,5,45,0,0,270,271,5,62,0,0,271,48,1,0,
|
|
164
|
+
0,0,272,273,5,58,0,0,273,50,1,0,0,0,274,275,5,59,0,0,275,52,1,0,0,0,276,
|
|
165
|
+
277,5,61,0,0,277,54,1,0,0,0,278,279,5,44,0,0,279,56,1,0,0,0,9,0,63,77,
|
|
166
|
+
139,199,244,249,255,259,1,6,0,0
|
|
167
|
+
};
|
|
168
|
+
staticData->serializedATN = antlr4::atn::SerializedATNView(serializedATNSegment, sizeof(serializedATNSegment) / sizeof(serializedATNSegment[0]));
|
|
169
|
+
|
|
170
|
+
antlr4::atn::ATNDeserializer deserializer;
|
|
171
|
+
staticData->atn = deserializer.deserialize(staticData->serializedATN);
|
|
172
|
+
|
|
173
|
+
const size_t count = staticData->atn->getNumberOfDecisions();
|
|
174
|
+
staticData->decisionToDFA.reserve(count);
|
|
175
|
+
for (size_t i = 0; i < count; i++) {
|
|
176
|
+
staticData->decisionToDFA.emplace_back(staticData->atn->getDecisionState(i), i);
|
|
177
|
+
}
|
|
178
|
+
didlexerLexerStaticData = staticData.release();
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
DIDLexer::DIDLexer(CharStream *input) : Lexer(input) {
|
|
184
|
+
DIDLexer::initialize();
|
|
185
|
+
_interpreter = new atn::LexerATNSimulator(this, *didlexerLexerStaticData->atn, didlexerLexerStaticData->decisionToDFA, didlexerLexerStaticData->sharedContextCache);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
DIDLexer::~DIDLexer() {
|
|
189
|
+
delete _interpreter;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
std::string DIDLexer::getGrammarFileName() const {
|
|
193
|
+
return "DIDLexer.g4";
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
const std::vector<std::string>& DIDLexer::getRuleNames() const {
|
|
197
|
+
return didlexerLexerStaticData->ruleNames;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
const std::vector<std::string>& DIDLexer::getChannelNames() const {
|
|
201
|
+
return didlexerLexerStaticData->channelNames;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const std::vector<std::string>& DIDLexer::getModeNames() const {
|
|
205
|
+
return didlexerLexerStaticData->modeNames;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
const dfa::Vocabulary& DIDLexer::getVocabulary() const {
|
|
209
|
+
return didlexerLexerStaticData->vocabulary;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
antlr4::atn::SerializedATNView DIDLexer::getSerializedATN() const {
|
|
213
|
+
return didlexerLexerStaticData->serializedATN;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const atn::ATN& DIDLexer::getATN() const {
|
|
217
|
+
return *didlexerLexerStaticData->atn;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
void DIDLexer::initialize() {
|
|
224
|
+
std::call_once(didlexerLexerOnceFlag, didlexerLexerInitialize);
|
|
225
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
// Generated from ./DIDLexer.g4 by ANTLR 4.10.1
|
|
3
|
+
|
|
4
|
+
#pragma once
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
#include "antlr4-runtime.h"
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DIDLexer : public antlr4::Lexer {
|
|
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
|
+
explicit DIDLexer(antlr4::CharStream *input);
|
|
22
|
+
|
|
23
|
+
~DIDLexer() override;
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
std::string getGrammarFileName() const override;
|
|
27
|
+
|
|
28
|
+
const std::vector<std::string>& getRuleNames() const override;
|
|
29
|
+
|
|
30
|
+
const std::vector<std::string>& getChannelNames() const override;
|
|
31
|
+
|
|
32
|
+
const std::vector<std::string>& getModeNames() const override;
|
|
33
|
+
|
|
34
|
+
const antlr4::dfa::Vocabulary& getVocabulary() const override;
|
|
35
|
+
|
|
36
|
+
antlr4::atn::SerializedATNView getSerializedATN() const override;
|
|
37
|
+
|
|
38
|
+
const antlr4::atn::ATN& getATN() const override;
|
|
39
|
+
|
|
40
|
+
// By default the static state used to implement the lexer is lazily initialized during the first
|
|
41
|
+
// call to the constructor. You can call this function if you wish to initialize the static state
|
|
42
|
+
// ahead of time.
|
|
43
|
+
static void initialize();
|
|
44
|
+
|
|
45
|
+
private:
|
|
46
|
+
|
|
47
|
+
// Individual action functions triggered by action() above.
|
|
48
|
+
|
|
49
|
+
// Individual semantic predicate functions triggered by sempred() above.
|
|
50
|
+
|
|
51
|
+
};
|
|
52
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
BlockComment
|
|
57
|
+
LineComment
|
|
58
|
+
S
|
|
59
|
+
Type
|
|
60
|
+
Query
|
|
61
|
+
Oneway
|
|
62
|
+
PrimType
|
|
63
|
+
NumType
|
|
64
|
+
OPT
|
|
65
|
+
VEC
|
|
66
|
+
RECORD
|
|
67
|
+
VARIANT
|
|
68
|
+
Service
|
|
69
|
+
FUNC
|
|
70
|
+
Letter
|
|
71
|
+
DIGIT
|
|
72
|
+
NameChar
|
|
73
|
+
NameStartChar
|
|
74
|
+
Name
|
|
75
|
+
LeftP
|
|
76
|
+
RightP
|
|
77
|
+
LeftB
|
|
78
|
+
RightB
|
|
79
|
+
Arrow
|
|
80
|
+
Colon
|
|
81
|
+
Semicolon
|
|
82
|
+
Eq
|
|
83
|
+
Comma
|
|
84
|
+
|
|
85
|
+
channel names:
|
|
86
|
+
DEFAULT_TOKEN_CHANNEL
|
|
87
|
+
HIDDEN
|
|
88
|
+
|
|
89
|
+
mode names:
|
|
90
|
+
DEFAULT_MODE
|
|
91
|
+
|
|
92
|
+
atn:
|
|
93
|
+
[4, 0, 24, 280, 6, -1, 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, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 1, 0, 1, 0, 1, 0, 1, 0, 5, 0, 62, 8, 0, 10, 0, 12, 0, 65, 9, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 76, 8, 1, 10, 1, 12, 1, 79, 9, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 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, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 140, 8, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 200, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 3, 16, 245, 8, 16, 1, 17, 1, 17, 1, 18, 3, 18, 250, 8, 18, 1, 18, 1, 18, 5, 18, 254, 8, 18, 10, 18, 12, 18, 257, 9, 18, 1, 18, 3, 18, 260, 8, 18, 1, 19, 1, 19, 1, 20, 1, 20, 1, 21, 1, 21, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 25, 1, 25, 1, 26, 1, 26, 1, 27, 1, 27, 1, 63, 0, 28, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 0, 31, 0, 33, 0, 35, 0, 37, 15, 39, 16, 41, 17, 43, 18, 45, 19, 47, 20, 49, 21, 51, 22, 53, 23, 55, 24, 1, 0, 5, 2, 0, 10, 10, 13, 13, 3, 0, 9, 10, 13, 13, 32, 32, 2, 0, 65, 90, 97, 122, 1, 0, 48, 57, 3, 0, 65, 90, 95, 95, 97, 122, 299, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 53, 1, 0, 0, 0, 0, 55, 1, 0, 0, 0, 1, 57, 1, 0, 0, 0, 3, 71, 1, 0, 0, 0, 5, 82, 1, 0, 0, 0, 7, 86, 1, 0, 0, 0, 9, 91, 1, 0, 0, 0, 11, 97, 1, 0, 0, 0, 13, 139, 1, 0, 0, 0, 15, 199, 1, 0, 0, 0, 17, 201, 1, 0, 0, 0, 19, 205, 1, 0, 0, 0, 21, 209, 1, 0, 0, 0, 23, 216, 1, 0, 0, 0, 25, 224, 1, 0, 0, 0, 27, 232, 1, 0, 0, 0, 29, 237, 1, 0, 0, 0, 31, 239, 1, 0, 0, 0, 33, 244, 1, 0, 0, 0, 35, 246, 1, 0, 0, 0, 37, 249, 1, 0, 0, 0, 39, 261, 1, 0, 0, 0, 41, 263, 1, 0, 0, 0, 43, 265, 1, 0, 0, 0, 45, 267, 1, 0, 0, 0, 47, 269, 1, 0, 0, 0, 49, 272, 1, 0, 0, 0, 51, 274, 1, 0, 0, 0, 53, 276, 1, 0, 0, 0, 55, 278, 1, 0, 0, 0, 57, 58, 5, 47, 0, 0, 58, 59, 5, 42, 0, 0, 59, 63, 1, 0, 0, 0, 60, 62, 9, 0, 0, 0, 61, 60, 1, 0, 0, 0, 62, 65, 1, 0, 0, 0, 63, 64, 1, 0, 0, 0, 63, 61, 1, 0, 0, 0, 64, 66, 1, 0, 0, 0, 65, 63, 1, 0, 0, 0, 66, 67, 5, 42, 0, 0, 67, 68, 5, 47, 0, 0, 68, 69, 1, 0, 0, 0, 69, 70, 6, 0, 0, 0, 70, 2, 1, 0, 0, 0, 71, 72, 5, 47, 0, 0, 72, 73, 5, 47, 0, 0, 73, 77, 1, 0, 0, 0, 74, 76, 8, 0, 0, 0, 75, 74, 1, 0, 0, 0, 76, 79, 1, 0, 0, 0, 77, 75, 1, 0, 0, 0, 77, 78, 1, 0, 0, 0, 78, 80, 1, 0, 0, 0, 79, 77, 1, 0, 0, 0, 80, 81, 6, 1, 0, 0, 81, 4, 1, 0, 0, 0, 82, 83, 7, 1, 0, 0, 83, 84, 1, 0, 0, 0, 84, 85, 6, 2, 0, 0, 85, 6, 1, 0, 0, 0, 86, 87, 5, 116, 0, 0, 87, 88, 5, 121, 0, 0, 88, 89, 5, 112, 0, 0, 89, 90, 5, 101, 0, 0, 90, 8, 1, 0, 0, 0, 91, 92, 5, 113, 0, 0, 92, 93, 5, 117, 0, 0, 93, 94, 5, 101, 0, 0, 94, 95, 5, 114, 0, 0, 95, 96, 5, 121, 0, 0, 96, 10, 1, 0, 0, 0, 97, 98, 5, 111, 0, 0, 98, 99, 5, 110, 0, 0, 99, 100, 5, 101, 0, 0, 100, 101, 5, 119, 0, 0, 101, 102, 5, 97, 0, 0, 102, 103, 5, 121, 0, 0, 103, 12, 1, 0, 0, 0, 104, 140, 3, 15, 7, 0, 105, 106, 5, 98, 0, 0, 106, 107, 5, 111, 0, 0, 107, 108, 5, 111, 0, 0, 108, 140, 5, 108, 0, 0, 109, 110, 5, 116, 0, 0, 110, 111, 5, 101, 0, 0, 111, 112, 5, 120, 0, 0, 112, 140, 5, 116, 0, 0, 113, 114, 5, 110, 0, 0, 114, 115, 5, 117, 0, 0, 115, 116, 5, 108, 0, 0, 116, 140, 5, 108, 0, 0, 117, 118, 5, 114, 0, 0, 118, 119, 5, 101, 0, 0, 119, 120, 5, 115, 0, 0, 120, 121, 5, 101, 0, 0, 121, 122, 5, 114, 0, 0, 122, 123, 5, 118, 0, 0, 123, 124, 5, 101, 0, 0, 124, 140, 5, 100, 0, 0, 125, 126, 5, 101, 0, 0, 126, 127, 5, 109, 0, 0, 127, 128, 5, 112, 0, 0, 128, 129, 5, 116, 0, 0, 129, 140, 5, 121, 0, 0, 130, 131, 5, 112, 0, 0, 131, 132, 5, 114, 0, 0, 132, 133, 5, 105, 0, 0, 133, 134, 5, 110, 0, 0, 134, 135, 5, 99, 0, 0, 135, 136, 5, 105, 0, 0, 136, 137, 5, 112, 0, 0, 137, 138, 5, 97, 0, 0, 138, 140, 5, 108, 0, 0, 139, 104, 1, 0, 0, 0, 139, 105, 1, 0, 0, 0, 139, 109, 1, 0, 0, 0, 139, 113, 1, 0, 0, 0, 139, 117, 1, 0, 0, 0, 139, 125, 1, 0, 0, 0, 139, 130, 1, 0, 0, 0, 140, 14, 1, 0, 0, 0, 141, 142, 5, 110, 0, 0, 142, 143, 5, 97, 0, 0, 143, 200, 5, 116, 0, 0, 144, 145, 5, 110, 0, 0, 145, 146, 5, 97, 0, 0, 146, 147, 5, 116, 0, 0, 147, 200, 5, 56, 0, 0, 148, 149, 5, 110, 0, 0, 149, 150, 5, 97, 0, 0, 150, 151, 5, 116, 0, 0, 151, 152, 5, 49, 0, 0, 152, 200, 5, 54, 0, 0, 153, 154, 5, 110, 0, 0, 154, 155, 5, 97, 0, 0, 155, 156, 5, 116, 0, 0, 156, 157, 5, 51, 0, 0, 157, 200, 5, 50, 0, 0, 158, 159, 5, 110, 0, 0, 159, 160, 5, 97, 0, 0, 160, 161, 5, 116, 0, 0, 161, 162, 5, 54, 0, 0, 162, 200, 5, 52, 0, 0, 163, 164, 5, 105, 0, 0, 164, 165, 5, 110, 0, 0, 165, 200, 5, 116, 0, 0, 166, 167, 5, 105, 0, 0, 167, 168, 5, 110, 0, 0, 168, 169, 5, 116, 0, 0, 169, 200, 5, 56, 0, 0, 170, 171, 5, 105, 0, 0, 171, 172, 5, 110, 0, 0, 172, 173, 5, 116, 0, 0, 173, 174, 5, 49, 0, 0, 174, 200, 5, 54, 0, 0, 175, 176, 5, 105, 0, 0, 176, 177, 5, 110, 0, 0, 177, 178, 5, 116, 0, 0, 178, 179, 5, 51, 0, 0, 179, 200, 5, 50, 0, 0, 180, 181, 5, 105, 0, 0, 181, 182, 5, 110, 0, 0, 182, 183, 5, 116, 0, 0, 183, 184, 5, 54, 0, 0, 184, 200, 5, 52, 0, 0, 185, 186, 5, 102, 0, 0, 186, 187, 5, 108, 0, 0, 187, 188, 5, 111, 0, 0, 188, 189, 5, 97, 0, 0, 189, 190, 5, 116, 0, 0, 190, 191, 5, 51, 0, 0, 191, 200, 5, 50, 0, 0, 192, 193, 5, 102, 0, 0, 193, 194, 5, 108, 0, 0, 194, 195, 5, 111, 0, 0, 195, 196, 5, 97, 0, 0, 196, 197, 5, 116, 0, 0, 197, 198, 5, 54, 0, 0, 198, 200, 5, 52, 0, 0, 199, 141, 1, 0, 0, 0, 199, 144, 1, 0, 0, 0, 199, 148, 1, 0, 0, 0, 199, 153, 1, 0, 0, 0, 199, 158, 1, 0, 0, 0, 199, 163, 1, 0, 0, 0, 199, 166, 1, 0, 0, 0, 199, 170, 1, 0, 0, 0, 199, 175, 1, 0, 0, 0, 199, 180, 1, 0, 0, 0, 199, 185, 1, 0, 0, 0, 199, 192, 1, 0, 0, 0, 200, 16, 1, 0, 0, 0, 201, 202, 5, 111, 0, 0, 202, 203, 5, 112, 0, 0, 203, 204, 5, 116, 0, 0, 204, 18, 1, 0, 0, 0, 205, 206, 5, 118, 0, 0, 206, 207, 5, 101, 0, 0, 207, 208, 5, 99, 0, 0, 208, 20, 1, 0, 0, 0, 209, 210, 5, 114, 0, 0, 210, 211, 5, 101, 0, 0, 211, 212, 5, 99, 0, 0, 212, 213, 5, 111, 0, 0, 213, 214, 5, 114, 0, 0, 214, 215, 5, 100, 0, 0, 215, 22, 1, 0, 0, 0, 216, 217, 5, 118, 0, 0, 217, 218, 5, 97, 0, 0, 218, 219, 5, 114, 0, 0, 219, 220, 5, 105, 0, 0, 220, 221, 5, 97, 0, 0, 221, 222, 5, 110, 0, 0, 222, 223, 5, 116, 0, 0, 223, 24, 1, 0, 0, 0, 224, 225, 5, 115, 0, 0, 225, 226, 5, 101, 0, 0, 226, 227, 5, 114, 0, 0, 227, 228, 5, 118, 0, 0, 228, 229, 5, 105, 0, 0, 229, 230, 5, 99, 0, 0, 230, 231, 5, 101, 0, 0, 231, 26, 1, 0, 0, 0, 232, 233, 5, 102, 0, 0, 233, 234, 5, 117, 0, 0, 234, 235, 5, 110, 0, 0, 235, 236, 5, 99, 0, 0, 236, 28, 1, 0, 0, 0, 237, 238, 7, 2, 0, 0, 238, 30, 1, 0, 0, 0, 239, 240, 7, 3, 0, 0, 240, 32, 1, 0, 0, 0, 241, 245, 3, 35, 17, 0, 242, 245, 5, 95, 0, 0, 243, 245, 3, 31, 15, 0, 244, 241, 1, 0, 0, 0, 244, 242, 1, 0, 0, 0, 244, 243, 1, 0, 0, 0, 245, 34, 1, 0, 0, 0, 246, 247, 7, 4, 0, 0, 247, 36, 1, 0, 0, 0, 248, 250, 5, 34, 0, 0, 249, 248, 1, 0, 0, 0, 249, 250, 1, 0, 0, 0, 250, 251, 1, 0, 0, 0, 251, 255, 3, 35, 17, 0, 252, 254, 3, 33, 16, 0, 253, 252, 1, 0, 0, 0, 254, 257, 1, 0, 0, 0, 255, 253, 1, 0, 0, 0, 255, 256, 1, 0, 0, 0, 256, 259, 1, 0, 0, 0, 257, 255, 1, 0, 0, 0, 258, 260, 5, 34, 0, 0, 259, 258, 1, 0, 0, 0, 259, 260, 1, 0, 0, 0, 260, 38, 1, 0, 0, 0, 261, 262, 5, 40, 0, 0, 262, 40, 1, 0, 0, 0, 263, 264, 5, 41, 0, 0, 264, 42, 1, 0, 0, 0, 265, 266, 5, 123, 0, 0, 266, 44, 1, 0, 0, 0, 267, 268, 5, 125, 0, 0, 268, 46, 1, 0, 0, 0, 269, 270, 5, 45, 0, 0, 270, 271, 5, 62, 0, 0, 271, 48, 1, 0, 0, 0, 272, 273, 5, 58, 0, 0, 273, 50, 1, 0, 0, 0, 274, 275, 5, 59, 0, 0, 275, 52, 1, 0, 0, 0, 276, 277, 5, 61, 0, 0, 277, 54, 1, 0, 0, 0, 278, 279, 5, 44, 0, 0, 279, 56, 1, 0, 0, 0, 9, 0, 63, 77, 139, 199, 244, 249, 255, 259, 1, 6, 0, 0]
|
|
@@ -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
|