expressir 1.3.0.pre.5 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/codeql.yml +47 -0
- data/.github/workflows/rake.yml +13 -12
- data/.github/workflows/release.yml +14 -10
- data/.github/workflows/stress.yml +53 -0
- data/.gitignore +1 -1
- data/.gitmodules +2 -2
- data/exe/generate-parser +1 -1
- data/expressir.gemspec +4 -4
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/CMakeLists.txt +191 -0
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/antlr4cpp-vs2019.vcxproj +11 -26
- data/ext/{express-parser/antlr4-upstream/runtime/Cpp/runtime/antlr4cpp-vs2013.vcxproj.filters → express_parser/antlr4-upstream/runtime/Cpp/runtime/antlr4cpp-vs2019.vcxproj.filters} +52 -85
- data/ext/{express-parser/antlr4-upstream/runtime/Cpp/runtime/antlr4cpp-vs2015.vcxproj → express_parser/antlr4-upstream/runtime/Cpp/runtime/antlr4cpp-vs2022.vcxproj} +38 -45
- data/ext/{express-parser/antlr4-upstream/runtime/Cpp/runtime/antlr4cpp-vs2015.vcxproj.filters → express_parser/antlr4-upstream/runtime/Cpp/runtime/antlr4cpp-vs2022.vcxproj.filters} +42 -81
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/antlrcpp.xcodeproj/project.pbxproj +177 -177
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/nuget/ANTLR4.Runtime.cpp.noarch.nuspec +23 -0
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/nuget/ANTLR4.Runtime.cpp.noarch.targets +8 -0
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/nuget/ANTLR4.Runtime.cpp.shared.nuspec +30 -0
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/nuget/ANTLR4.Runtime.cpp.shared.props +21 -0
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/nuget/ANTLR4.Runtime.cpp.shared.targets +44 -0
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/nuget/ANTLR4.Runtime.cpp.static.nuspec +29 -0
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/nuget/ANTLR4.Runtime.cpp.static.targets +44 -0
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/nuget/antlr4.jpg +0 -0
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/nuget/pack.cmd +93 -0
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/src/FlatHashMap.h +57 -0
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/src/FlatHashSet.h +57 -0
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/Parser.cpp +4 -2
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/Recognizer.cpp +3 -2
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/Recognizer.h +2 -1
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/Version.h +1 -1
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/antlr4-common.h +5 -2
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/antlr4-runtime.h +1 -2
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATN.cpp +2 -1
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATN.h +4 -3
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNConfig.cpp +4 -4
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNConfigSet.cpp +9 -8
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNConfigSet.h +2 -1
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNDeserializationOptions.cpp +2 -17
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNDeserializer.cpp +0 -1
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ArrayPredictionContext.cpp +30 -10
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/DecisionState.cpp +1 -1
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/src/atn/HashUtils.h +18 -0
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerATNSimulator.cpp +18 -12
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerActionExecutor.cpp +1 -4
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerIndexedCustomAction.cpp +1 -8
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ParserATNSimulator.cpp +68 -38
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContext.cpp +23 -1
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContextCache.h +3 -4
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContextMergeCache.h +3 -3
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionMode.cpp +2 -2
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/SemanticContext.cpp +11 -11
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/SemanticContext.h +11 -7
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/SingletonPredictionContext.cpp +1 -8
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/dfa/DFAState.cpp +1 -1
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/dfa/DFAState.h +2 -1
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/src/internal/Synchronization.cpp +100 -0
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/src/internal/Synchronization.h +154 -0
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/misc/IntervalSet.cpp +1 -1
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/misc/MurmurHash.cpp +18 -18
- data/ext/express_parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathLexer.cpp +180 -0
- data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathLexer.h +16 -10
- data/ext/{express-parser → express_parser}/express_parser.cpp +17 -15
- data/ext/{express-parser → express_parser}/extconf.rb +1 -0
- data/lib/expressir/express/parser.rb +0 -1
- data/lib/expressir/express/visitor.rb +11 -8
- data/lib/expressir/model/declarations/schema.rb +3 -3
- data/lib/expressir/model/model_element.rb +4 -4
- data/lib/expressir/version.rb +1 -1
- data/lib/expressir.rb +20 -0
- data/rakelib/antlr4-native.rake +24 -12
- data/rakelib/cross-ruby.rake +1 -1
- data/spec/acceptance/version_spec.rb +3 -0
- data/spec/expressir/express/cache_spec.rb +2 -2
- data/spec/expressir/express/formatter_spec.rb +0 -2
- metadata +361 -349
- data/ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/CMakeLists.txt +0 -153
- data/ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/antlr4cpp-vs2013.vcxproj +0 -643
- data/ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/antlr4cpp-vs2017.vcxproj +0 -659
- data/ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/antlr4cpp-vs2017.vcxproj.filters +0 -987
- data/ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/antlr4cpp-vs2019.vcxproj.filters +0 -987
- data/ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathLexer.cpp +0 -182
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/antlrcpp-ios/Info.plist +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/antlrcpp-ios/antlrcpp_ios.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/antlrcpp.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/antlrcpp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/antlrcpp.xcodeproj/xcshareddata/xcschemes/antlr4.xcscheme +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/antlrcpp.xcodeproj/xcshareddata/xcschemes/antlr4_ios.xcscheme +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/antlrcpp.xcodeproj/xcshareddata/xcschemes/antlr4_static.xcscheme +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRErrorListener.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRErrorListener.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRErrorStrategy.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRErrorStrategy.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRFileStream.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRFileStream.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRInputStream.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ANTLRInputStream.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/BailErrorStrategy.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/BailErrorStrategy.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/BaseErrorListener.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/BaseErrorListener.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/BufferedTokenStream.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/BufferedTokenStream.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/CharStream.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/CharStream.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/CommonToken.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/CommonToken.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/CommonTokenFactory.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/CommonTokenFactory.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/CommonTokenStream.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/CommonTokenStream.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ConsoleErrorListener.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ConsoleErrorListener.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/DefaultErrorStrategy.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/DefaultErrorStrategy.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/DiagnosticErrorListener.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/DiagnosticErrorListener.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/Exceptions.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/Exceptions.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/FailedPredicateException.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/FailedPredicateException.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/InputMismatchException.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/InputMismatchException.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/IntStream.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/IntStream.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/InterpreterRuleContext.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/InterpreterRuleContext.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/Lexer.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/Lexer.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/LexerNoViableAltException.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/LexerNoViableAltException.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ListTokenSource.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ListTokenSource.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/NoViableAltException.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/NoViableAltException.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/Parser.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ParserInterpreter.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ParserInterpreter.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ParserRuleContext.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ParserRuleContext.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ProxyErrorListener.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/ProxyErrorListener.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/RecognitionException.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/RecognitionException.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/RuleContext.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/RuleContext.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/RuleContextWithAltNum.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/RuleContextWithAltNum.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/RuntimeMetaData.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/RuntimeMetaData.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/Token.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/Token.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/TokenFactory.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/TokenSource.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/TokenSource.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/TokenStream.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/TokenStream.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/TokenStreamRewriter.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/TokenStreamRewriter.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/UnbufferedCharStream.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/UnbufferedCharStream.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/UnbufferedTokenStream.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/UnbufferedTokenStream.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/Vocabulary.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/Vocabulary.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/WritableToken.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/WritableToken.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNConfig.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNDeserializationOptions.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNDeserializer.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNSimulator.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNSimulator.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNState.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNStateType.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNStateType.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ATNType.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ActionTransition.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ActionTransition.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/AmbiguityInfo.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/AmbiguityInfo.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ArrayPredictionContext.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/AtomTransition.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/AtomTransition.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/BasicBlockStartState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/BasicState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/BlockEndState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/BlockStartState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ContextSensitivityInfo.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ContextSensitivityInfo.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/DecisionEventInfo.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/DecisionEventInfo.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/DecisionInfo.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/DecisionInfo.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/DecisionState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/EpsilonTransition.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/EpsilonTransition.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ErrorInfo.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ErrorInfo.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LL1Analyzer.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LL1Analyzer.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerATNConfig.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerATNConfig.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerATNSimulator.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerAction.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerAction.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerActionExecutor.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerActionType.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerChannelAction.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerChannelAction.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerCustomAction.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerCustomAction.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerIndexedCustomAction.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerModeAction.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerModeAction.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerMoreAction.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerMoreAction.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerPopModeAction.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerPopModeAction.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerPushModeAction.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerPushModeAction.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerSkipAction.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerSkipAction.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerTypeAction.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LexerTypeAction.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LookaheadEventInfo.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LookaheadEventInfo.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/LoopEndState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/NotSetTransition.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/NotSetTransition.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/OrderedATNConfigSet.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/OrderedATNConfigSet.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ParseInfo.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ParseInfo.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ParserATNSimulator.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ParserATNSimulatorOptions.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PlusBlockStartState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PlusLoopbackState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PrecedencePredicateTransition.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PrecedencePredicateTransition.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredicateEvalInfo.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredicateEvalInfo.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredicateTransition.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredicateTransition.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContext.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContextCache.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContextMergeCache.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContextMergeCacheOptions.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionContextType.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/PredictionMode.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ProfilingATNSimulator.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/ProfilingATNSimulator.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/RangeTransition.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/RangeTransition.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/RuleStartState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/RuleStopState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/RuleTransition.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/RuleTransition.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/SemanticContextType.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/SerializedATNView.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/SetTransition.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/SetTransition.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/SingletonPredictionContext.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/StarBlockStartState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/StarLoopEntryState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/StarLoopbackState.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/StarLoopbackState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/TokensStartState.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/Transition.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/Transition.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/TransitionType.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/TransitionType.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/WildcardTransition.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/atn/WildcardTransition.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/dfa/DFA.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/dfa/DFA.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/dfa/DFASerializer.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/dfa/DFASerializer.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/dfa/LexerDFASerializer.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/dfa/LexerDFASerializer.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/misc/InterpreterDataReader.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/misc/InterpreterDataReader.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/misc/Interval.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/misc/Interval.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/misc/IntervalSet.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/misc/MurmurHash.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/misc/Predicate.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/misc/Predicate.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/support/Any.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/support/Any.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/support/Arrays.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/support/Arrays.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/support/BitSet.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/support/CPPUtils.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/support/CPPUtils.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/support/Casts.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/support/Declarations.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/support/StringUtils.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/support/StringUtils.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/support/Unicode.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/support/Utf8.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/support/Utf8.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/AbstractParseTreeVisitor.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/ErrorNode.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/ErrorNodeImpl.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/ErrorNodeImpl.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/IterativeParseTreeWalker.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/IterativeParseTreeWalker.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTree.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTree.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeListener.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeListener.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeProperty.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeType.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeVisitor.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeVisitor.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeWalker.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/ParseTreeWalker.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/TerminalNode.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/TerminalNodeImpl.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/TerminalNodeImpl.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/Trees.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/Trees.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/Chunk.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/Chunk.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/ParseTreeMatch.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/ParseTreeMatch.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/ParseTreePattern.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/ParseTreePattern.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/ParseTreePatternMatcher.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/ParseTreePatternMatcher.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/RuleTagToken.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/RuleTagToken.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/TagChunk.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/TagChunk.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/TextChunk.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/TextChunk.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/TokenTagToken.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern/TokenTagToken.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPath.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPath.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathElement.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathElement.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathLexer.g4 +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathLexer.tokens +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathLexerErrorListener.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathLexerErrorListener.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathRuleAnywhereElement.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathRuleAnywhereElement.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathRuleElement.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathRuleElement.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathTokenAnywhereElement.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathTokenAnywhereElement.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathTokenElement.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathTokenElement.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathWildcardAnywhereElement.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathWildcardAnywhereElement.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathWildcardElement.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath/XPathWildcardElement.h +0 -0
- /data/ext/{express-parser → express_parser}/antlr4-upstream/runtime/Cpp/runtime/tests/Utf8Test.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/Express.interp +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/Express.tokens +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/ExpressBaseListener.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/ExpressBaseListener.h +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/ExpressBaseVisitor.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/ExpressBaseVisitor.h +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/ExpressLexer.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/ExpressLexer.h +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/ExpressLexer.interp +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/ExpressLexer.tokens +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/ExpressListener.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/ExpressListener.h +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/ExpressParser.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/ExpressParser.h +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/ExpressVisitor.cpp +0 -0
- /data/ext/{express-parser → express_parser}/antlrgen/ExpressVisitor.h +0 -0
@@ -0,0 +1,100 @@
|
|
1
|
+
// Copyright 2012-2022 The ANTLR Project
|
2
|
+
//
|
3
|
+
// Redistribution and use in source and binary forms, with or without modification, are permitted
|
4
|
+
// provided that the following conditions are met:
|
5
|
+
//
|
6
|
+
// 1. Redistributions of source code must retain the above copyright notice, this list of conditions
|
7
|
+
// and the following disclaimer.
|
8
|
+
//
|
9
|
+
// 2. Redistributions in binary form must reproduce the above copyright notice, this list of
|
10
|
+
// conditions and the following disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
//
|
13
|
+
// 3. Neither the name of the copyright holder nor the names of its contributors may be used to
|
14
|
+
// endorse or promote products derived from this software without specific prior written
|
15
|
+
// permission.
|
16
|
+
//
|
17
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
18
|
+
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
19
|
+
// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
20
|
+
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
21
|
+
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
22
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
23
|
+
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
24
|
+
// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
25
|
+
|
26
|
+
#include "internal/Synchronization.h"
|
27
|
+
|
28
|
+
using namespace antlr4::internal;
|
29
|
+
|
30
|
+
void Mutex::lock() {
|
31
|
+
#if ANTLR4CPP_USING_ABSEIL
|
32
|
+
_impl.Lock();
|
33
|
+
#else
|
34
|
+
_impl.lock();
|
35
|
+
#endif
|
36
|
+
}
|
37
|
+
|
38
|
+
bool Mutex::try_lock() {
|
39
|
+
#if ANTLR4CPP_USING_ABSEIL
|
40
|
+
return _impl.TryLock();
|
41
|
+
#else
|
42
|
+
return _impl.try_lock();
|
43
|
+
#endif
|
44
|
+
}
|
45
|
+
|
46
|
+
void Mutex::unlock() {
|
47
|
+
#if ANTLR4CPP_USING_ABSEIL
|
48
|
+
_impl.Unlock();
|
49
|
+
#else
|
50
|
+
_impl.unlock();
|
51
|
+
#endif
|
52
|
+
}
|
53
|
+
|
54
|
+
void SharedMutex::lock() {
|
55
|
+
#if ANTLR4CPP_USING_ABSEIL
|
56
|
+
_impl.WriterLock();
|
57
|
+
#else
|
58
|
+
_impl.lock();
|
59
|
+
#endif
|
60
|
+
}
|
61
|
+
|
62
|
+
bool SharedMutex::try_lock() {
|
63
|
+
#if ANTLR4CPP_USING_ABSEIL
|
64
|
+
return _impl.WriterTryLock();
|
65
|
+
#else
|
66
|
+
return _impl.try_lock();
|
67
|
+
#endif
|
68
|
+
}
|
69
|
+
|
70
|
+
void SharedMutex::unlock() {
|
71
|
+
#if ANTLR4CPP_USING_ABSEIL
|
72
|
+
_impl.WriterUnlock();
|
73
|
+
#else
|
74
|
+
_impl.unlock();
|
75
|
+
#endif
|
76
|
+
}
|
77
|
+
|
78
|
+
void SharedMutex::lock_shared() {
|
79
|
+
#if ANTLR4CPP_USING_ABSEIL
|
80
|
+
_impl.ReaderLock();
|
81
|
+
#else
|
82
|
+
_impl.lock_shared();
|
83
|
+
#endif
|
84
|
+
}
|
85
|
+
|
86
|
+
bool SharedMutex::try_lock_shared() {
|
87
|
+
#if ANTLR4CPP_USING_ABSEIL
|
88
|
+
return _impl.ReaderTryLock();
|
89
|
+
#else
|
90
|
+
return _impl.try_lock_shared();
|
91
|
+
#endif
|
92
|
+
}
|
93
|
+
|
94
|
+
void SharedMutex::unlock_shared() {
|
95
|
+
#if ANTLR4CPP_USING_ABSEIL
|
96
|
+
_impl.ReaderUnlock();
|
97
|
+
#else
|
98
|
+
_impl.unlock_shared();
|
99
|
+
#endif
|
100
|
+
}
|
@@ -0,0 +1,154 @@
|
|
1
|
+
// Copyright 2012-2022 The ANTLR Project
|
2
|
+
//
|
3
|
+
// Redistribution and use in source and binary forms, with or without modification, are permitted
|
4
|
+
// provided that the following conditions are met:
|
5
|
+
//
|
6
|
+
// 1. Redistributions of source code must retain the above copyright notice, this list of conditions
|
7
|
+
// and the following disclaimer.
|
8
|
+
//
|
9
|
+
// 2. Redistributions in binary form must reproduce the above copyright notice, this list of
|
10
|
+
// conditions and the following disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
//
|
13
|
+
// 3. Neither the name of the copyright holder nor the names of its contributors may be used to
|
14
|
+
// endorse or promote products derived from this software without specific prior written
|
15
|
+
// permission.
|
16
|
+
//
|
17
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
18
|
+
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
19
|
+
// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
20
|
+
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
21
|
+
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
22
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
23
|
+
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
24
|
+
// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
25
|
+
|
26
|
+
#pragma once
|
27
|
+
|
28
|
+
#include "antlr4-common.h"
|
29
|
+
|
30
|
+
#include <mutex>
|
31
|
+
#include <shared_mutex>
|
32
|
+
#include <utility>
|
33
|
+
|
34
|
+
#if ANTLR4CPP_USING_ABSEIL
|
35
|
+
#include "absl/base/call_once.h"
|
36
|
+
#include "absl/base/thread_annotations.h"
|
37
|
+
#include "absl/synchronization/mutex.h"
|
38
|
+
#define ANTLR4CPP_NO_THREAD_SAFTEY_ANALYSIS ABSL_NO_THREAD_SAFETY_ANALYSIS
|
39
|
+
#else
|
40
|
+
#define ANTLR4CPP_NO_THREAD_SAFTEY_ANALYSIS
|
41
|
+
#endif
|
42
|
+
|
43
|
+
// By default ANTLRv4 uses synchronization primitives provided by the C++ standard library. In most
|
44
|
+
// deployments this is fine, however in some using custom synchronization primitives may be
|
45
|
+
// preferred. This header allows that by optionally supporting some alternative implementations and
|
46
|
+
// allowing for more easier patching of other alternatives.
|
47
|
+
|
48
|
+
namespace antlr4::internal {
|
49
|
+
|
50
|
+
// Must be compatible with C++ standard library Mutex requirement.
|
51
|
+
class ANTLR4CPP_PUBLIC Mutex final {
|
52
|
+
public:
|
53
|
+
Mutex() = default;
|
54
|
+
|
55
|
+
// No copying or moving, we are as strict as possible to support other implementations.
|
56
|
+
Mutex(const Mutex&) = delete;
|
57
|
+
Mutex(Mutex&&) = delete;
|
58
|
+
|
59
|
+
// No copying or moving, we are as strict as possible to support other implementations.
|
60
|
+
Mutex& operator=(const Mutex&) = delete;
|
61
|
+
Mutex& operator=(Mutex&&) = delete;
|
62
|
+
|
63
|
+
void lock() ANTLR4CPP_NO_THREAD_SAFTEY_ANALYSIS;
|
64
|
+
|
65
|
+
bool try_lock() ANTLR4CPP_NO_THREAD_SAFTEY_ANALYSIS;
|
66
|
+
|
67
|
+
void unlock() ANTLR4CPP_NO_THREAD_SAFTEY_ANALYSIS;
|
68
|
+
|
69
|
+
private:
|
70
|
+
#if ANTLR4CPP_USING_ABSEIL
|
71
|
+
absl::Mutex _impl;
|
72
|
+
#else
|
73
|
+
std::mutex _impl;
|
74
|
+
#endif
|
75
|
+
};
|
76
|
+
|
77
|
+
template <typename Mutex>
|
78
|
+
using UniqueLock = std::unique_lock<Mutex>;
|
79
|
+
|
80
|
+
// Must be compatible with C++ standard library SharedMutex requirement.
|
81
|
+
class ANTLR4CPP_PUBLIC SharedMutex final {
|
82
|
+
public:
|
83
|
+
SharedMutex() = default;
|
84
|
+
|
85
|
+
// No copying or moving, we are as strict as possible to support other implementations.
|
86
|
+
SharedMutex(const SharedMutex&) = delete;
|
87
|
+
SharedMutex(SharedMutex&&) = delete;
|
88
|
+
|
89
|
+
// No copying or moving, we are as strict as possible to support other implementations.
|
90
|
+
SharedMutex& operator=(const SharedMutex&) = delete;
|
91
|
+
SharedMutex& operator=(SharedMutex&&) = delete;
|
92
|
+
|
93
|
+
void lock() ANTLR4CPP_NO_THREAD_SAFTEY_ANALYSIS;
|
94
|
+
|
95
|
+
bool try_lock() ANTLR4CPP_NO_THREAD_SAFTEY_ANALYSIS;
|
96
|
+
|
97
|
+
void unlock() ANTLR4CPP_NO_THREAD_SAFTEY_ANALYSIS;
|
98
|
+
|
99
|
+
void lock_shared() ANTLR4CPP_NO_THREAD_SAFTEY_ANALYSIS;
|
100
|
+
|
101
|
+
bool try_lock_shared() ANTLR4CPP_NO_THREAD_SAFTEY_ANALYSIS;
|
102
|
+
|
103
|
+
void unlock_shared() ANTLR4CPP_NO_THREAD_SAFTEY_ANALYSIS;
|
104
|
+
|
105
|
+
private:
|
106
|
+
#if ANTLR4CPP_USING_ABSEIL
|
107
|
+
absl::Mutex _impl;
|
108
|
+
#else
|
109
|
+
std::shared_mutex _impl;
|
110
|
+
#endif
|
111
|
+
};
|
112
|
+
|
113
|
+
template <typename Mutex>
|
114
|
+
using SharedLock = std::shared_lock<Mutex>;
|
115
|
+
|
116
|
+
class OnceFlag;
|
117
|
+
|
118
|
+
template <typename Callable, typename... Args>
|
119
|
+
void call_once(OnceFlag &onceFlag, Callable &&callable, Args&&... args);
|
120
|
+
|
121
|
+
// Must be compatible with std::once_flag.
|
122
|
+
class ANTLR4CPP_PUBLIC OnceFlag final {
|
123
|
+
public:
|
124
|
+
constexpr OnceFlag() = default;
|
125
|
+
|
126
|
+
// No copying or moving, we are as strict as possible to support other implementations.
|
127
|
+
OnceFlag(const OnceFlag&) = delete;
|
128
|
+
OnceFlag(OnceFlag&&) = delete;
|
129
|
+
|
130
|
+
// No copying or moving, we are as strict as possible to support other implementations.
|
131
|
+
OnceFlag& operator=(const OnceFlag&) = delete;
|
132
|
+
OnceFlag& operator=(OnceFlag&&) = delete;
|
133
|
+
|
134
|
+
private:
|
135
|
+
template <typename Callable, typename... Args>
|
136
|
+
friend void call_once(OnceFlag &onceFlag, Callable &&callable, Args&&... args);
|
137
|
+
|
138
|
+
#if ANTLR4CPP_USING_ABSEIL
|
139
|
+
absl::once_flag _impl;
|
140
|
+
#else
|
141
|
+
std::once_flag _impl;
|
142
|
+
#endif
|
143
|
+
};
|
144
|
+
|
145
|
+
template <typename Callable, typename... Args>
|
146
|
+
void call_once(OnceFlag &onceFlag, Callable &&callable, Args&&... args) {
|
147
|
+
#if ANTLR4CPP_USING_ABSEIL
|
148
|
+
absl::call_once(onceFlag._impl, std::forward<Callable>(callable), std::forward<Args>(args)...);
|
149
|
+
#else
|
150
|
+
std::call_once(onceFlag._impl, std::forward<Callable>(callable), std::forward<Args>(args)...);
|
151
|
+
#endif
|
152
|
+
}
|
153
|
+
|
154
|
+
} // namespace antlr4::internal
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
|
2
2
|
* Use of this file is governed by the BSD 3-clause license that
|
3
3
|
* can be found in the LICENSE.txt file in the project root.
|
4
4
|
*/
|
@@ -63,23 +63,6 @@ size_t MurmurHash::update(size_t hash, size_t value) {
|
|
63
63
|
return hash;
|
64
64
|
}
|
65
65
|
|
66
|
-
size_t MurmurHash::update(size_t hash, const void *data, size_t size) {
|
67
|
-
size_t value;
|
68
|
-
const uint8_t *bytes = static_cast<const uint8_t*>(data);
|
69
|
-
while (size >= sizeof(size_t)) {
|
70
|
-
std::memcpy(&value, bytes, sizeof(size_t));
|
71
|
-
hash = update(hash, value);
|
72
|
-
bytes += sizeof(size_t);
|
73
|
-
size -= sizeof(size_t);
|
74
|
-
}
|
75
|
-
if (size != 0) {
|
76
|
-
value = 0;
|
77
|
-
std::memcpy(&value, bytes, size);
|
78
|
-
hash = update(hash, value);
|
79
|
-
}
|
80
|
-
return hash;
|
81
|
-
}
|
82
|
-
|
83
66
|
size_t MurmurHash::finish(size_t hash, size_t entryCount) {
|
84
67
|
hash ^= entryCount * 8;
|
85
68
|
hash ^= hash >> 33;
|
@@ -118,3 +101,20 @@ size_t MurmurHash::finish(size_t hash, size_t entryCount) {
|
|
118
101
|
#else
|
119
102
|
#error "Expected sizeof(size_t) to be 4 or 8."
|
120
103
|
#endif
|
104
|
+
|
105
|
+
size_t MurmurHash::update(size_t hash, const void *data, size_t size) {
|
106
|
+
size_t value;
|
107
|
+
const uint8_t *bytes = static_cast<const uint8_t*>(data);
|
108
|
+
while (size >= sizeof(size_t)) {
|
109
|
+
std::memcpy(&value, bytes, sizeof(size_t));
|
110
|
+
hash = update(hash, value);
|
111
|
+
bytes += sizeof(size_t);
|
112
|
+
size -= sizeof(size_t);
|
113
|
+
}
|
114
|
+
if (size != 0) {
|
115
|
+
value = 0;
|
116
|
+
std::memcpy(&value, bytes, size);
|
117
|
+
hash = update(hash, value);
|
118
|
+
}
|
119
|
+
return hash;
|
120
|
+
}
|
@@ -0,0 +1,180 @@
|
|
1
|
+
|
2
|
+
// Generated from XPathLexer.g4 by ANTLR 4.13.0
|
3
|
+
|
4
|
+
|
5
|
+
#include "XPathLexer.h"
|
6
|
+
|
7
|
+
|
8
|
+
using namespace antlr4;
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
using namespace antlr4;
|
13
|
+
|
14
|
+
namespace {
|
15
|
+
|
16
|
+
struct XPathLexerStaticData final {
|
17
|
+
XPathLexerStaticData(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
|
+
XPathLexerStaticData(const XPathLexerStaticData&) = delete;
|
28
|
+
XPathLexerStaticData(XPathLexerStaticData&&) = delete;
|
29
|
+
XPathLexerStaticData& operator=(const XPathLexerStaticData&) = delete;
|
30
|
+
XPathLexerStaticData& operator=(XPathLexerStaticData&&) = 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
|
+
::antlr4::internal::OnceFlag xpathlexerLexerOnceFlag;
|
45
|
+
#if ANTLR4_USE_THREAD_LOCAL_CACHE
|
46
|
+
static thread_local
|
47
|
+
#endif
|
48
|
+
XPathLexerStaticData *xpathlexerLexerStaticData = nullptr;
|
49
|
+
|
50
|
+
void xpathlexerLexerInitialize() {
|
51
|
+
#if ANTLR4_USE_THREAD_LOCAL_CACHE
|
52
|
+
if (xpathlexerLexerStaticData != nullptr) {
|
53
|
+
return;
|
54
|
+
}
|
55
|
+
#else
|
56
|
+
assert(xpathlexerLexerStaticData == nullptr);
|
57
|
+
#endif
|
58
|
+
auto staticData = std::make_unique<XPathLexerStaticData>(
|
59
|
+
std::vector<std::string>{
|
60
|
+
"ANYWHERE", "ROOT", "WILDCARD", "BANG", "ID", "NameChar", "NameStartChar",
|
61
|
+
"STRING"
|
62
|
+
},
|
63
|
+
std::vector<std::string>{
|
64
|
+
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
|
65
|
+
},
|
66
|
+
std::vector<std::string>{
|
67
|
+
"DEFAULT_MODE"
|
68
|
+
},
|
69
|
+
std::vector<std::string>{
|
70
|
+
"", "", "", "'//'", "'/'", "'*'", "'!'"
|
71
|
+
},
|
72
|
+
std::vector<std::string>{
|
73
|
+
"", "TOKEN_REF", "RULE_REF", "ANYWHERE", "ROOT", "WILDCARD", "BANG",
|
74
|
+
"ID", "STRING"
|
75
|
+
}
|
76
|
+
);
|
77
|
+
static const int32_t serializedATNSegment[] = {
|
78
|
+
4,0,8,50,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,
|
79
|
+
2,7,7,7,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,4,5,4,29,8,4,10,4,12,
|
80
|
+
4,32,9,4,1,4,1,4,1,5,1,5,3,5,38,8,5,1,6,1,6,1,7,1,7,5,7,44,8,7,10,7,12,
|
81
|
+
7,47,9,7,1,7,1,7,1,45,0,8,1,3,3,4,5,5,7,6,9,7,11,0,13,0,15,8,1,0,2,5,
|
82
|
+
0,48,57,95,95,183,183,768,879,8255,8256,13,0,65,90,97,122,192,214,216,
|
83
|
+
246,248,767,880,893,895,8191,8204,8205,8304,8591,11264,12271,12289,55295,
|
84
|
+
63744,64975,65008,65535,50,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,
|
85
|
+
0,0,0,0,9,1,0,0,0,0,15,1,0,0,0,1,17,1,0,0,0,3,20,1,0,0,0,5,22,1,0,0,0,
|
86
|
+
7,24,1,0,0,0,9,26,1,0,0,0,11,37,1,0,0,0,13,39,1,0,0,0,15,41,1,0,0,0,17,
|
87
|
+
18,5,47,0,0,18,19,5,47,0,0,19,2,1,0,0,0,20,21,5,47,0,0,21,4,1,0,0,0,22,
|
88
|
+
23,5,42,0,0,23,6,1,0,0,0,24,25,5,33,0,0,25,8,1,0,0,0,26,30,3,13,6,0,27,
|
89
|
+
29,3,11,5,0,28,27,1,0,0,0,29,32,1,0,0,0,30,28,1,0,0,0,30,31,1,0,0,0,31,
|
90
|
+
33,1,0,0,0,32,30,1,0,0,0,33,34,6,4,0,0,34,10,1,0,0,0,35,38,3,13,6,0,36,
|
91
|
+
38,7,0,0,0,37,35,1,0,0,0,37,36,1,0,0,0,38,12,1,0,0,0,39,40,7,1,0,0,40,
|
92
|
+
14,1,0,0,0,41,45,5,39,0,0,42,44,9,0,0,0,43,42,1,0,0,0,44,47,1,0,0,0,45,
|
93
|
+
46,1,0,0,0,45,43,1,0,0,0,46,48,1,0,0,0,47,45,1,0,0,0,48,49,5,39,0,0,49,
|
94
|
+
16,1,0,0,0,4,0,30,37,45,1,1,4,0
|
95
|
+
};
|
96
|
+
staticData->serializedATN = antlr4::atn::SerializedATNView(serializedATNSegment, sizeof(serializedATNSegment) / sizeof(serializedATNSegment[0]));
|
97
|
+
|
98
|
+
antlr4::atn::ATNDeserializer deserializer;
|
99
|
+
staticData->atn = deserializer.deserialize(staticData->serializedATN);
|
100
|
+
|
101
|
+
const size_t count = staticData->atn->getNumberOfDecisions();
|
102
|
+
staticData->decisionToDFA.reserve(count);
|
103
|
+
for (size_t i = 0; i < count; i++) {
|
104
|
+
staticData->decisionToDFA.emplace_back(staticData->atn->getDecisionState(i), i);
|
105
|
+
}
|
106
|
+
xpathlexerLexerStaticData = staticData.release();
|
107
|
+
}
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
XPathLexer::XPathLexer(CharStream *input) : Lexer(input) {
|
112
|
+
XPathLexer::initialize();
|
113
|
+
_interpreter = new atn::LexerATNSimulator(this, *xpathlexerLexerStaticData->atn, xpathlexerLexerStaticData->decisionToDFA, xpathlexerLexerStaticData->sharedContextCache);
|
114
|
+
}
|
115
|
+
|
116
|
+
XPathLexer::~XPathLexer() {
|
117
|
+
delete _interpreter;
|
118
|
+
}
|
119
|
+
|
120
|
+
std::string XPathLexer::getGrammarFileName() const {
|
121
|
+
return "XPathLexer.g4";
|
122
|
+
}
|
123
|
+
|
124
|
+
const std::vector<std::string>& XPathLexer::getRuleNames() const {
|
125
|
+
return xpathlexerLexerStaticData->ruleNames;
|
126
|
+
}
|
127
|
+
|
128
|
+
const std::vector<std::string>& XPathLexer::getChannelNames() const {
|
129
|
+
return xpathlexerLexerStaticData->channelNames;
|
130
|
+
}
|
131
|
+
|
132
|
+
const std::vector<std::string>& XPathLexer::getModeNames() const {
|
133
|
+
return xpathlexerLexerStaticData->modeNames;
|
134
|
+
}
|
135
|
+
|
136
|
+
const dfa::Vocabulary& XPathLexer::getVocabulary() const {
|
137
|
+
return xpathlexerLexerStaticData->vocabulary;
|
138
|
+
}
|
139
|
+
|
140
|
+
antlr4::atn::SerializedATNView XPathLexer::getSerializedATN() const {
|
141
|
+
return xpathlexerLexerStaticData->serializedATN;
|
142
|
+
}
|
143
|
+
|
144
|
+
const atn::ATN& XPathLexer::getATN() const {
|
145
|
+
return *xpathlexerLexerStaticData->atn;
|
146
|
+
}
|
147
|
+
|
148
|
+
|
149
|
+
void XPathLexer::action(RuleContext *context, size_t ruleIndex, size_t actionIndex) {
|
150
|
+
switch (ruleIndex) {
|
151
|
+
case 4: IDAction(antlrcpp::downCast<antlr4::RuleContext *>(context), actionIndex); break;
|
152
|
+
|
153
|
+
default:
|
154
|
+
break;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
void XPathLexer::IDAction(antlr4::RuleContext *context, size_t actionIndex) {
|
159
|
+
switch (actionIndex) {
|
160
|
+
case 0:
|
161
|
+
if (isupper(getText()[0]))
|
162
|
+
setType(TOKEN_REF);
|
163
|
+
else
|
164
|
+
setType(RULE_REF);
|
165
|
+
break;
|
166
|
+
|
167
|
+
default:
|
168
|
+
break;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
void XPathLexer::initialize() {
|
175
|
+
#if ANTLR4_USE_THREAD_LOCAL_CACHE
|
176
|
+
xpathlexerLexerInitialize();
|
177
|
+
#else
|
178
|
+
::antlr4::internal::call_once(xpathlexerLexerOnceFlag, xpathlexerLexerInitialize);
|
179
|
+
#endif
|
180
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
// Generated from XPathLexer.g4 by ANTLR 4.
|
2
|
+
// Generated from XPathLexer.g4 by ANTLR 4.13.0
|
3
3
|
|
4
4
|
#pragma once
|
5
5
|
|
@@ -7,10 +7,12 @@
|
|
7
7
|
#include "antlr4-runtime.h"
|
8
8
|
|
9
9
|
|
10
|
+
|
11
|
+
|
10
12
|
class XPathLexer : public antlr4::Lexer {
|
11
13
|
public:
|
12
14
|
enum {
|
13
|
-
TOKEN_REF = 1, RULE_REF = 2, ANYWHERE = 3, ROOT = 4, WILDCARD = 5, BANG = 6,
|
15
|
+
TOKEN_REF = 1, RULE_REF = 2, ANYWHERE = 3, ROOT = 4, WILDCARD = 5, BANG = 6,
|
14
16
|
ID = 7, STRING = 8
|
15
17
|
};
|
16
18
|
|
@@ -18,30 +20,34 @@ public:
|
|
18
20
|
|
19
21
|
~XPathLexer() override;
|
20
22
|
|
21
|
-
virtual std::string getGrammarFileName() const override;
|
22
23
|
|
23
|
-
|
24
|
+
std::string getGrammarFileName() const override;
|
25
|
+
|
26
|
+
const std::vector<std::string>& getRuleNames() const override;
|
24
27
|
|
25
|
-
|
28
|
+
const std::vector<std::string>& getChannelNames() const override;
|
26
29
|
|
27
|
-
|
30
|
+
const std::vector<std::string>& getModeNames() const override;
|
28
31
|
|
29
|
-
|
32
|
+
const antlr4::dfa::Vocabulary& getVocabulary() const override;
|
30
33
|
|
31
|
-
|
34
|
+
antlr4::atn::SerializedATNView getSerializedATN() const override;
|
32
35
|
|
33
|
-
|
36
|
+
const antlr4::atn::ATN& getATN() const override;
|
34
37
|
|
35
|
-
|
38
|
+
void action(antlr4::RuleContext *context, size_t ruleIndex, size_t actionIndex) override;
|
36
39
|
|
37
40
|
// By default the static state used to implement the lexer is lazily initialized during the first
|
38
41
|
// call to the constructor. You can call this function if you wish to initialize the static state
|
39
42
|
// ahead of time.
|
40
43
|
static void initialize();
|
44
|
+
|
41
45
|
private:
|
46
|
+
|
42
47
|
// Individual action functions triggered by action() above.
|
43
48
|
void IDAction(antlr4::RuleContext *context, size_t actionIndex);
|
44
49
|
|
45
50
|
// Individual semantic predicate functions triggered by sempred() above.
|
51
|
+
|
46
52
|
};
|
47
53
|
|
@@ -299,13 +299,13 @@ public:
|
|
299
299
|
Object getStart() {
|
300
300
|
auto token = ((ParserRuleContext*) orig) -> getStart();
|
301
301
|
|
302
|
-
return detail::To_Ruby<
|
302
|
+
return detail::To_Ruby<TokenProxy>().convert(TokenProxy(token));
|
303
303
|
}
|
304
304
|
|
305
305
|
Object getStop() {
|
306
306
|
auto token = ((ParserRuleContext*) orig) -> getStop();
|
307
307
|
|
308
|
-
return detail::To_Ruby<
|
308
|
+
return detail::To_Ruby<TokenProxy>().convert(TokenProxy(token));
|
309
309
|
}
|
310
310
|
|
311
311
|
Array getChildren() {
|
@@ -16242,7 +16242,7 @@ public:
|
|
16242
16242
|
auto result = visit(proxy -> getOriginal());
|
16243
16243
|
try {
|
16244
16244
|
return std::any_cast<Object>(result);
|
16245
|
-
} catch(std::
|
16245
|
+
} catch(std::bad_any_cast) {
|
16246
16246
|
return Qnil;
|
16247
16247
|
}
|
16248
16248
|
}
|
@@ -16251,7 +16251,7 @@ public:
|
|
16251
16251
|
auto result = visitChildren(proxy -> getOriginal());
|
16252
16252
|
try {
|
16253
16253
|
return std::any_cast<Object>(result);
|
16254
|
-
} catch(std::
|
16254
|
+
} catch(std::bad_any_cast) {
|
16255
16255
|
return Qnil;
|
16256
16256
|
}
|
16257
16257
|
}
|
@@ -18160,12 +18160,12 @@ class ParserProxyExt : public Object {
|
|
18160
18160
|
return detail::To_Ruby<SyntaxContextProxy>().convert(proxy);
|
18161
18161
|
}
|
18162
18162
|
|
18163
|
-
|
18164
|
-
|
18163
|
+
Object getTokens() {
|
18164
|
+
std::vector<TokenProxy> tk;
|
18165
18165
|
for (auto token : tokens -> getTokens()) {
|
18166
|
-
|
18166
|
+
tk.push_back(TokenProxy(token));
|
18167
18167
|
}
|
18168
|
-
return
|
18168
|
+
return detail::To_Ruby<std::vector<TokenProxy>>().convert(tk);
|
18169
18169
|
}
|
18170
18170
|
|
18171
18171
|
Object visit(VisitorProxy* visitor) {
|
@@ -18176,8 +18176,8 @@ class ParserProxyExt : public Object {
|
|
18176
18176
|
|
18177
18177
|
try {
|
18178
18178
|
return std::any_cast<Object>(result);
|
18179
|
-
} catch(std::
|
18180
|
-
|
18179
|
+
} catch(std::bad_any_cast) {
|
18180
|
+
return Qnil;
|
18181
18181
|
}
|
18182
18182
|
}
|
18183
18183
|
|
@@ -18418,8 +18418,8 @@ void Init_express_parser() {
|
|
18418
18418
|
rb_cParser = define_class_under<ParserProxy>(rb_mExpressParser, "Parser")
|
18419
18419
|
.define_singleton_function("parse", &ParserProxy::parse)
|
18420
18420
|
.define_singleton_function("parse_file", &ParserProxy::parseFile)
|
18421
|
-
.define_method("syntax", &ParserProxy::syntax
|
18422
|
-
.define_method("visit", &ParserProxy::visit
|
18421
|
+
.define_method("syntax", &ParserProxy::syntax)
|
18422
|
+
.define_method("visit", &ParserProxy::visit);
|
18423
18423
|
|
18424
18424
|
rb_cTokenExt = define_class_under<TokenProxy>(rb_mExpressParser, "TokenExt")
|
18425
18425
|
.define_method("text", &TokenProxy::getText)
|
@@ -18428,9 +18428,11 @@ void Init_express_parser() {
|
|
18428
18428
|
|
18429
18429
|
rb_cParserExt = define_class_under<ParserProxyExt>(rb_mExpressParser, "ParserExt")
|
18430
18430
|
.define_constructor(Constructor<ParserProxyExt, string>())
|
18431
|
-
.define_method("syntax", &ParserProxyExt::syntax
|
18432
|
-
.define_method("tokens", &ParserProxyExt::getTokens)
|
18433
|
-
.define_method("visit", &ParserProxyExt::visit
|
18431
|
+
.define_method("syntax", &ParserProxyExt::syntax)
|
18432
|
+
.define_method("tokens", &ParserProxyExt::getTokens, Return().keepAlive())
|
18433
|
+
.define_method("visit", &ParserProxyExt::visit);
|
18434
|
+
|
18435
|
+
define_vector<std::vector<TokenProxy>>("TokenVector");
|
18434
18436
|
|
18435
18437
|
rb_cAttributeRefContext = define_class_under<AttributeRefContextProxy, ContextProxy>(rb_mExpressParser, "AttributeRefContext")
|
18436
18438
|
.define_method("attribute_id", &AttributeRefContextProxy::attributeId);
|
@@ -39,7 +39,6 @@ module Expressir
|
|
39
39
|
# so in this class we keep those C++ structure marked for GC so they are not freed
|
40
40
|
@parser = ::ExpressParser::ParserExt.new(file.to_s)
|
41
41
|
@parse_tree = @parser.syntax()
|
42
|
-
|
43
42
|
@visitor = Visitor.new(@parser.tokens, include_source: include_source)
|
44
43
|
@repository = @visitor.visit(@parse_tree)
|
45
44
|
|