From 8e4cbbfd8711b5c36be61da1fc996d45d2901383 Mon Sep 17 00:00:00 2001
From: zhm <1978583449@qq.com>
Date: Tue, 12 May 2026 01:06:45 +0800
Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4src/include=E4=B8=AD=E7=9A=84?=
=?UTF-8?q?ANTLR=E9=87=8D=E5=A4=8D=E5=A4=B4=E6=96=87=E4=BB=B6=EF=BC=8C?=
=?UTF-8?q?=E4=BD=BF=E7=94=A8/extlibs?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/include/ANTLRErrorListener.cpp | 10 -
src/include/ANTLRErrorListener.h | 167 --
src/include/ANTLRErrorStrategy.cpp | 10 -
src/include/ANTLRErrorStrategy.h | 121 --
src/include/ANTLRFileStream.cpp | 23 -
src/include/ANTLRFileStream.h | 30 -
src/include/ANTLRInputStream.cpp | 180 ---
src/include/ANTLRInputStream.h | 79 -
src/include/antlr4-common.h | 101 --
src/include/antlr4-runtime.h | 168 --
src/include/atn/ATN.cpp | 159 --
src/include/atn/ATN.h | 133 --
src/include/atn/ATNConfig.cpp | 106 --
src/include/atn/ATNConfig.h | 157 --
src/include/atn/ATNConfigSet.cpp | 233 ---
src/include/atn/ATNConfigSet.h | 157 --
src/include/atn/ATNDeserializationOptions.cpp | 39 -
src/include/atn/ATNDeserializationOptions.h | 48 -
src/include/atn/ATNDeserializer.cpp | 628 --------
src/include/atn/ATNDeserializer.h | 32 -
src/include/atn/ATNSimulator.cpp | 33 -
src/include/atn/ATNSimulator.h | 71 -
src/include/atn/ATNState.cpp | 56 -
src/include/atn/ATNState.h | 139 --
src/include/atn/ATNStateType.cpp | 33 -
src/include/atn/ATNStateType.h | 36 -
src/include/atn/ATNType.h | 20 -
src/include/atn/ActionTransition.cpp | 29 -
src/include/atn/ActionTransition.h | 35 -
src/include/atn/AmbiguityInfo.cpp | 16 -
src/include/atn/AmbiguityInfo.h | 68 -
src/include/atn/ArrayPredictionContext.cpp | 129 --
src/include/atn/ArrayPredictionContext.h | 51 -
src/include/atn/AtomTransition.cpp | 27 -
src/include/atn/AtomTransition.h | 33 -
src/include/atn/BasicBlockStartState.h | 24 -
src/include/atn/BasicState.h | 23 -
src/include/atn/BlockEndState.h | 26 -
src/include/atn/BlockStartState.h | 30 -
src/include/atn/ContextSensitivityInfo.cpp | 14 -
src/include/atn/ContextSensitivityInfo.h | 47 -
src/include/atn/DecisionEventInfo.cpp | 14 -
src/include/atn/DecisionEventInfo.h | 70 -
src/include/atn/DecisionInfo.cpp | 25 -
src/include/atn/DecisionInfo.h | 227 ---
src/include/atn/DecisionState.cpp | 12 -
src/include/atn/DecisionState.h | 34 -
src/include/atn/EpsilonTransition.cpp | 31 -
src/include/atn/EpsilonTransition.h | 42 -
src/include/atn/ErrorInfo.cpp | 15 -
src/include/atn/ErrorInfo.h | 43 -
src/include/atn/HashUtils.h | 18 -
src/include/atn/LL1Analyzer.cpp | 189 ---
src/include/atn/LL1Analyzer.h | 76 -
src/include/atn/LexerATNConfig.cpp | 67 -
src/include/atn/LexerATNConfig.h | 44 -
src/include/atn/LexerATNSimulator.cpp | 621 --------
src/include/atn/LexerATNSimulator.h | 199 ---
src/include/atn/LexerAction.cpp | 15 -
src/include/atn/LexerAction.h | 100 --
src/include/atn/LexerActionExecutor.cpp | 108 --
src/include/atn/LexerActionExecutor.h | 128 --
src/include/atn/LexerActionType.h | 57 -
src/include/atn/LexerChannelAction.cpp | 43 -
src/include/atn/LexerChannelAction.h | 59 -
src/include/atn/LexerCustomAction.cpp | 45 -
src/include/atn/LexerCustomAction.h | 75 -
src/include/atn/LexerIndexedCustomAction.cpp | 50 -
src/include/atn/LexerIndexedCustomAction.h | 76 -
src/include/atn/LexerModeAction.cpp | 43 -
src/include/atn/LexerModeAction.h | 57 -
src/include/atn/LexerMoreAction.cpp | 36 -
src/include/atn/LexerMoreAction.h | 53 -
src/include/atn/LexerPopModeAction.cpp | 36 -
src/include/atn/LexerPopModeAction.h | 53 -
src/include/atn/LexerPushModeAction.cpp | 43 -
src/include/atn/LexerPushModeAction.h | 57 -
src/include/atn/LexerSkipAction.cpp | 36 -
src/include/atn/LexerSkipAction.h | 51 -
src/include/atn/LexerTypeAction.cpp | 43 -
src/include/atn/LexerTypeAction.h | 51 -
src/include/atn/LookaheadEventInfo.cpp | 16 -
src/include/atn/LookaheadEventInfo.h | 42 -
src/include/atn/LoopEndState.h | 26 -
src/include/atn/NotSetTransition.cpp | 22 -
src/include/atn/NotSetTransition.h | 27 -
src/include/atn/OrderedATNConfigSet.cpp | 16 -
src/include/atn/OrderedATNConfigSet.h | 25 -
src/include/atn/ParseInfo.cpp | 102 --
src/include/atn/ParseInfo.h | 102 --
src/include/atn/ParserATNSimulator.cpp | 1413 -----------------
src/include/atn/ParserATNSimulator.h | 911 -----------
src/include/atn/ParserATNSimulatorOptions.h | 50 -
src/include/atn/PlusBlockStartState.h | 29 -
src/include/atn/PlusLoopbackState.h | 25 -
.../atn/PrecedencePredicateTransition.cpp | 23 -
.../atn/PrecedencePredicateTransition.h | 35 -
src/include/atn/PredicateEvalInfo.cpp | 17 -
src/include/atn/PredicateEvalInfo.h | 62 -
src/include/atn/PredicateTransition.cpp | 24 -
src/include/atn/PredicateTransition.h | 50 -
src/include/atn/PredictionContext.cpp | 601 -------
src/include/atn/PredictionContext.h | 225 ---
src/include/atn/PredictionContextCache.cpp | 56 -
src/include/atn/PredictionContextCache.h | 63 -
.../atn/PredictionContextMergeCache.cpp | 167 --
src/include/atn/PredictionContextMergeCache.h | 101 --
.../atn/PredictionContextMergeCacheOptions.h | 71 -
src/include/atn/PredictionContextType.h | 21 -
src/include/atn/PredictionMode.cpp | 202 ---
src/include/atn/PredictionMode.h | 436 -----
src/include/atn/ProfilingATNSimulator.cpp | 179 ---
src/include/atn/ProfilingATNSimulator.h | 60 -
src/include/atn/RangeTransition.cpp | 26 -
src/include/atn/RangeTransition.h | 31 -
src/include/atn/RuleStartState.h | 26 -
src/include/atn/RuleStopState.h | 27 -
src/include/atn/RuleTransition.cpp | 33 -
src/include/atn/RuleTransition.h | 42 -
src/include/atn/SemanticContext.cpp | 418 -----
src/include/atn/SemanticContext.h | 237 ---
src/include/atn/SemanticContextType.h | 23 -
src/include/atn/SerializedATNView.h | 101 --
src/include/atn/SetTransition.cpp | 28 -
src/include/atn/SetTransition.h | 38 -
.../atn/SingletonPredictionContext.cpp | 79 -
src/include/atn/SingletonPredictionContext.h | 43 -
src/include/atn/StarBlockStartState.h | 24 -
src/include/atn/StarLoopEntryState.h | 37 -
src/include/atn/StarLoopbackState.cpp | 19 -
src/include/atn/StarLoopbackState.h | 25 -
src/include/atn/TokensStartState.h | 24 -
src/include/atn/Transition.cpp | 36 -
src/include/atn/Transition.h | 65 -
src/include/atn/TransitionType.cpp | 27 -
src/include/atn/TransitionType.h | 33 -
src/include/atn/WildcardTransition.cpp | 21 -
src/include/atn/WildcardTransition.h | 27 -
src/include/dfa/DFA.cpp | 115 --
src/include/dfa/DFA.h | 96 --
src/include/dfa/DFASerializer.cpp | 60 -
src/include/dfa/DFASerializer.h | 32 -
src/include/dfa/DFAState.cpp | 59 -
src/include/dfa/DFAState.h | 154 --
src/include/dfa/LexerDFASerializer.cpp | 17 -
src/include/dfa/LexerDFASerializer.h | 22 -
src/include/internal/Synchronization.cpp | 100 --
src/include/internal/Synchronization.h | 154 --
src/include/misc/InterpreterDataReader.cpp | 124 --
src/include/misc/InterpreterDataReader.h | 33 -
src/include/misc/Interval.cpp | 61 -
src/include/misc/Interval.h | 84 -
src/include/misc/IntervalSet.cpp | 508 ------
src/include/misc/IntervalSet.h | 190 ---
src/include/misc/MurmurHash.cpp | 120 --
src/include/misc/MurmurHash.h | 102 --
src/include/misc/Predicate.cpp | 4 -
src/include/misc/Predicate.h | 21 -
src/include/support/Any.cpp | 8 -
src/include/support/Any.h | 16 -
src/include/support/Arrays.cpp | 43 -
src/include/support/Arrays.h | 149 --
src/include/support/BitSet.h | 76 -
src/include/support/CPPUtils.cpp | 207 ---
src/include/support/CPPUtils.h | 65 -
src/include/support/Casts.h | 34 -
src/include/support/Declarations.h | 161 --
src/include/support/StringUtils.cpp | 38 -
src/include/support/StringUtils.h | 16 -
src/include/support/Unicode.h | 28 -
src/include/support/Utf8.cpp | 242 ---
src/include/support/Utf8.h | 54 -
src/include/tree/AbstractParseTreeVisitor.h | 129 --
src/include/tree/ErrorNode.h | 24 -
src/include/tree/ErrorNodeImpl.cpp | 54 -
src/include/tree/ErrorNodeImpl.h | 43 -
src/include/tree/IterativeParseTreeWalker.cpp | 66 -
src/include/tree/IterativeParseTreeWalker.h | 53 -
src/include/tree/ParseTree.cpp | 12 -
src/include/tree/ParseTree.h | 111 --
src/include/tree/ParseTreeListener.cpp | 9 -
src/include/tree/ParseTreeListener.h | 39 -
src/include/tree/ParseTreeProperty.h | 50 -
src/include/tree/ParseTreeType.h | 22 -
src/include/tree/ParseTreeVisitor.cpp | 9 -
src/include/tree/ParseTreeVisitor.h | 57 -
src/include/tree/ParseTreeWalker.cpp | 48 -
src/include/tree/ParseTreeWalker.h | 55 -
src/include/tree/TerminalNode.h | 40 -
src/include/tree/TerminalNodeImpl.cpp | 54 -
src/include/tree/TerminalNodeImpl.h | 32 -
src/include/tree/Trees.cpp | 241 ---
src/include/tree/Trees.h | 78 -
src/include/tree/pattern/Chunk.cpp | 9 -
src/include/tree/pattern/Chunk.h | 44 -
src/include/tree/pattern/ParseTreeMatch.cpp | 69 -
src/include/tree/pattern/ParseTreeMatch.h | 132 --
src/include/tree/pattern/ParseTreePattern.cpp | 64 -
src/include/tree/pattern/ParseTreePattern.h | 105 --
.../tree/pattern/ParseTreePatternMatcher.cpp | 370 -----
.../tree/pattern/ParseTreePatternMatcher.h | 185 ---
src/include/tree/pattern/RuleTagToken.cpp | 77 -
src/include/tree/pattern/RuleTagToken.h | 117 --
src/include/tree/pattern/TagChunk.cpp | 39 -
src/include/tree/pattern/TagChunk.h | 86 -
src/include/tree/pattern/TextChunk.cpp | 28 -
src/include/tree/pattern/TextChunk.h | 51 -
src/include/tree/pattern/TokenTagToken.cpp | 36 -
src/include/tree/pattern/TokenTagToken.h | 80 -
src/include/tree/xpath/XPath.cpp | 154 --
src/include/tree/xpath/XPath.h | 86 -
src/include/tree/xpath/XPathElement.cpp | 31 -
src/include/tree/xpath/XPathElement.h | 40 -
src/include/tree/xpath/XPathLexer.cpp | 180 ---
src/include/tree/xpath/XPathLexer.g4 | 64 -
src/include/tree/xpath/XPathLexer.h | 53 -
.../tree/xpath/XPathLexerErrorListener.cpp | 13 -
.../tree/xpath/XPathLexerErrorListener.h | 22 -
.../tree/xpath/XPathRuleAnywhereElement.cpp | 20 -
.../tree/xpath/XPathRuleAnywhereElement.h | 27 -
src/include/tree/xpath/XPathRuleElement.cpp | 30 -
src/include/tree/xpath/XPathRuleElement.h | 26 -
.../tree/xpath/XPathTokenAnywhereElement.cpp | 20 -
.../tree/xpath/XPathTokenAnywhereElement.h | 25 -
src/include/tree/xpath/XPathTokenElement.cpp | 33 -
src/include/tree/xpath/XPathTokenElement.h | 26 -
.../xpath/XPathWildcardAnywhereElement.cpp | 23 -
.../tree/xpath/XPathWildcardAnywhereElement.h | 23 -
.../tree/xpath/XPathWildcardElement.cpp | 24 -
src/include/tree/xpath/XPathWildcardElement.h | 23 -
230 files changed, 20106 deletions(-)
delete mode 100644 src/include/ANTLRErrorListener.cpp
delete mode 100755 src/include/ANTLRErrorListener.h
delete mode 100644 src/include/ANTLRErrorStrategy.cpp
delete mode 100755 src/include/ANTLRErrorStrategy.h
delete mode 100755 src/include/ANTLRFileStream.cpp
delete mode 100755 src/include/ANTLRFileStream.h
delete mode 100755 src/include/ANTLRInputStream.cpp
delete mode 100755 src/include/ANTLRInputStream.h
delete mode 100644 src/include/antlr4-common.h
delete mode 100644 src/include/antlr4-runtime.h
delete mode 100755 src/include/atn/ATN.cpp
delete mode 100755 src/include/atn/ATN.h
delete mode 100755 src/include/atn/ATNConfig.cpp
delete mode 100755 src/include/atn/ATNConfig.h
delete mode 100755 src/include/atn/ATNConfigSet.cpp
delete mode 100755 src/include/atn/ATNConfigSet.h
delete mode 100755 src/include/atn/ATNDeserializationOptions.cpp
delete mode 100755 src/include/atn/ATNDeserializationOptions.h
delete mode 100755 src/include/atn/ATNDeserializer.cpp
delete mode 100755 src/include/atn/ATNDeserializer.h
delete mode 100755 src/include/atn/ATNSimulator.cpp
delete mode 100755 src/include/atn/ATNSimulator.h
delete mode 100755 src/include/atn/ATNState.cpp
delete mode 100755 src/include/atn/ATNState.h
delete mode 100644 src/include/atn/ATNStateType.cpp
delete mode 100644 src/include/atn/ATNStateType.h
delete mode 100755 src/include/atn/ATNType.h
delete mode 100755 src/include/atn/ActionTransition.cpp
delete mode 100755 src/include/atn/ActionTransition.h
delete mode 100755 src/include/atn/AmbiguityInfo.cpp
delete mode 100755 src/include/atn/AmbiguityInfo.h
delete mode 100755 src/include/atn/ArrayPredictionContext.cpp
delete mode 100755 src/include/atn/ArrayPredictionContext.h
delete mode 100755 src/include/atn/AtomTransition.cpp
delete mode 100755 src/include/atn/AtomTransition.h
delete mode 100755 src/include/atn/BasicBlockStartState.h
delete mode 100755 src/include/atn/BasicState.h
delete mode 100755 src/include/atn/BlockEndState.h
delete mode 100755 src/include/atn/BlockStartState.h
delete mode 100755 src/include/atn/ContextSensitivityInfo.cpp
delete mode 100755 src/include/atn/ContextSensitivityInfo.h
delete mode 100755 src/include/atn/DecisionEventInfo.cpp
delete mode 100755 src/include/atn/DecisionEventInfo.h
delete mode 100755 src/include/atn/DecisionInfo.cpp
delete mode 100755 src/include/atn/DecisionInfo.h
delete mode 100755 src/include/atn/DecisionState.cpp
delete mode 100755 src/include/atn/DecisionState.h
delete mode 100755 src/include/atn/EpsilonTransition.cpp
delete mode 100755 src/include/atn/EpsilonTransition.h
delete mode 100755 src/include/atn/ErrorInfo.cpp
delete mode 100755 src/include/atn/ErrorInfo.h
delete mode 100644 src/include/atn/HashUtils.h
delete mode 100755 src/include/atn/LL1Analyzer.cpp
delete mode 100755 src/include/atn/LL1Analyzer.h
delete mode 100755 src/include/atn/LexerATNConfig.cpp
delete mode 100755 src/include/atn/LexerATNConfig.h
delete mode 100755 src/include/atn/LexerATNSimulator.cpp
delete mode 100755 src/include/atn/LexerATNSimulator.h
delete mode 100644 src/include/atn/LexerAction.cpp
delete mode 100755 src/include/atn/LexerAction.h
delete mode 100755 src/include/atn/LexerActionExecutor.cpp
delete mode 100755 src/include/atn/LexerActionExecutor.h
delete mode 100755 src/include/atn/LexerActionType.h
delete mode 100755 src/include/atn/LexerChannelAction.cpp
delete mode 100755 src/include/atn/LexerChannelAction.h
delete mode 100755 src/include/atn/LexerCustomAction.cpp
delete mode 100755 src/include/atn/LexerCustomAction.h
delete mode 100755 src/include/atn/LexerIndexedCustomAction.cpp
delete mode 100755 src/include/atn/LexerIndexedCustomAction.h
delete mode 100755 src/include/atn/LexerModeAction.cpp
delete mode 100755 src/include/atn/LexerModeAction.h
delete mode 100755 src/include/atn/LexerMoreAction.cpp
delete mode 100755 src/include/atn/LexerMoreAction.h
delete mode 100755 src/include/atn/LexerPopModeAction.cpp
delete mode 100755 src/include/atn/LexerPopModeAction.h
delete mode 100755 src/include/atn/LexerPushModeAction.cpp
delete mode 100755 src/include/atn/LexerPushModeAction.h
delete mode 100755 src/include/atn/LexerSkipAction.cpp
delete mode 100755 src/include/atn/LexerSkipAction.h
delete mode 100755 src/include/atn/LexerTypeAction.cpp
delete mode 100755 src/include/atn/LexerTypeAction.h
delete mode 100755 src/include/atn/LookaheadEventInfo.cpp
delete mode 100755 src/include/atn/LookaheadEventInfo.h
delete mode 100755 src/include/atn/LoopEndState.h
delete mode 100755 src/include/atn/NotSetTransition.cpp
delete mode 100755 src/include/atn/NotSetTransition.h
delete mode 100755 src/include/atn/OrderedATNConfigSet.cpp
delete mode 100755 src/include/atn/OrderedATNConfigSet.h
delete mode 100755 src/include/atn/ParseInfo.cpp
delete mode 100755 src/include/atn/ParseInfo.h
delete mode 100755 src/include/atn/ParserATNSimulator.cpp
delete mode 100755 src/include/atn/ParserATNSimulator.h
delete mode 100644 src/include/atn/ParserATNSimulatorOptions.h
delete mode 100755 src/include/atn/PlusBlockStartState.h
delete mode 100755 src/include/atn/PlusLoopbackState.h
delete mode 100755 src/include/atn/PrecedencePredicateTransition.cpp
delete mode 100755 src/include/atn/PrecedencePredicateTransition.h
delete mode 100755 src/include/atn/PredicateEvalInfo.cpp
delete mode 100755 src/include/atn/PredicateEvalInfo.h
delete mode 100755 src/include/atn/PredicateTransition.cpp
delete mode 100755 src/include/atn/PredicateTransition.h
delete mode 100755 src/include/atn/PredictionContext.cpp
delete mode 100755 src/include/atn/PredictionContext.h
delete mode 100644 src/include/atn/PredictionContextCache.cpp
delete mode 100644 src/include/atn/PredictionContextCache.h
delete mode 100644 src/include/atn/PredictionContextMergeCache.cpp
delete mode 100644 src/include/atn/PredictionContextMergeCache.h
delete mode 100644 src/include/atn/PredictionContextMergeCacheOptions.h
delete mode 100644 src/include/atn/PredictionContextType.h
delete mode 100755 src/include/atn/PredictionMode.cpp
delete mode 100755 src/include/atn/PredictionMode.h
delete mode 100755 src/include/atn/ProfilingATNSimulator.cpp
delete mode 100755 src/include/atn/ProfilingATNSimulator.h
delete mode 100755 src/include/atn/RangeTransition.cpp
delete mode 100755 src/include/atn/RangeTransition.h
delete mode 100755 src/include/atn/RuleStartState.h
delete mode 100755 src/include/atn/RuleStopState.h
delete mode 100755 src/include/atn/RuleTransition.cpp
delete mode 100755 src/include/atn/RuleTransition.h
delete mode 100755 src/include/atn/SemanticContext.cpp
delete mode 100755 src/include/atn/SemanticContext.h
delete mode 100644 src/include/atn/SemanticContextType.h
delete mode 100644 src/include/atn/SerializedATNView.h
delete mode 100755 src/include/atn/SetTransition.cpp
delete mode 100755 src/include/atn/SetTransition.h
delete mode 100755 src/include/atn/SingletonPredictionContext.cpp
delete mode 100755 src/include/atn/SingletonPredictionContext.h
delete mode 100755 src/include/atn/StarBlockStartState.h
delete mode 100755 src/include/atn/StarLoopEntryState.h
delete mode 100755 src/include/atn/StarLoopbackState.cpp
delete mode 100755 src/include/atn/StarLoopbackState.h
delete mode 100755 src/include/atn/TokensStartState.h
delete mode 100755 src/include/atn/Transition.cpp
delete mode 100755 src/include/atn/Transition.h
delete mode 100644 src/include/atn/TransitionType.cpp
delete mode 100644 src/include/atn/TransitionType.h
delete mode 100755 src/include/atn/WildcardTransition.cpp
delete mode 100755 src/include/atn/WildcardTransition.h
delete mode 100755 src/include/dfa/DFA.cpp
delete mode 100755 src/include/dfa/DFA.h
delete mode 100755 src/include/dfa/DFASerializer.cpp
delete mode 100755 src/include/dfa/DFASerializer.h
delete mode 100755 src/include/dfa/DFAState.cpp
delete mode 100755 src/include/dfa/DFAState.h
delete mode 100755 src/include/dfa/LexerDFASerializer.cpp
delete mode 100755 src/include/dfa/LexerDFASerializer.h
delete mode 100644 src/include/internal/Synchronization.cpp
delete mode 100644 src/include/internal/Synchronization.h
delete mode 100755 src/include/misc/InterpreterDataReader.cpp
delete mode 100755 src/include/misc/InterpreterDataReader.h
delete mode 100755 src/include/misc/Interval.cpp
delete mode 100755 src/include/misc/Interval.h
delete mode 100755 src/include/misc/IntervalSet.cpp
delete mode 100755 src/include/misc/IntervalSet.h
delete mode 100755 src/include/misc/MurmurHash.cpp
delete mode 100755 src/include/misc/MurmurHash.h
delete mode 100644 src/include/misc/Predicate.cpp
delete mode 100755 src/include/misc/Predicate.h
delete mode 100644 src/include/support/Any.cpp
delete mode 100644 src/include/support/Any.h
delete mode 100644 src/include/support/Arrays.cpp
delete mode 100644 src/include/support/Arrays.h
delete mode 100644 src/include/support/BitSet.h
delete mode 100755 src/include/support/CPPUtils.cpp
delete mode 100644 src/include/support/CPPUtils.h
delete mode 100644 src/include/support/Casts.h
delete mode 100644 src/include/support/Declarations.h
delete mode 100644 src/include/support/StringUtils.cpp
delete mode 100644 src/include/support/StringUtils.h
delete mode 100644 src/include/support/Unicode.h
delete mode 100644 src/include/support/Utf8.cpp
delete mode 100644 src/include/support/Utf8.h
delete mode 100755 src/include/tree/AbstractParseTreeVisitor.h
delete mode 100755 src/include/tree/ErrorNode.h
delete mode 100755 src/include/tree/ErrorNodeImpl.cpp
delete mode 100755 src/include/tree/ErrorNodeImpl.h
delete mode 100644 src/include/tree/IterativeParseTreeWalker.cpp
delete mode 100644 src/include/tree/IterativeParseTreeWalker.h
delete mode 100755 src/include/tree/ParseTree.cpp
delete mode 100755 src/include/tree/ParseTree.h
delete mode 100644 src/include/tree/ParseTreeListener.cpp
delete mode 100755 src/include/tree/ParseTreeListener.h
delete mode 100755 src/include/tree/ParseTreeProperty.h
delete mode 100644 src/include/tree/ParseTreeType.h
delete mode 100644 src/include/tree/ParseTreeVisitor.cpp
delete mode 100755 src/include/tree/ParseTreeVisitor.h
delete mode 100755 src/include/tree/ParseTreeWalker.cpp
delete mode 100755 src/include/tree/ParseTreeWalker.h
delete mode 100755 src/include/tree/TerminalNode.h
delete mode 100755 src/include/tree/TerminalNodeImpl.cpp
delete mode 100755 src/include/tree/TerminalNodeImpl.h
delete mode 100755 src/include/tree/Trees.cpp
delete mode 100755 src/include/tree/Trees.h
delete mode 100644 src/include/tree/pattern/Chunk.cpp
delete mode 100755 src/include/tree/pattern/Chunk.h
delete mode 100755 src/include/tree/pattern/ParseTreeMatch.cpp
delete mode 100755 src/include/tree/pattern/ParseTreeMatch.h
delete mode 100755 src/include/tree/pattern/ParseTreePattern.cpp
delete mode 100755 src/include/tree/pattern/ParseTreePattern.h
delete mode 100755 src/include/tree/pattern/ParseTreePatternMatcher.cpp
delete mode 100755 src/include/tree/pattern/ParseTreePatternMatcher.h
delete mode 100755 src/include/tree/pattern/RuleTagToken.cpp
delete mode 100755 src/include/tree/pattern/RuleTagToken.h
delete mode 100755 src/include/tree/pattern/TagChunk.cpp
delete mode 100755 src/include/tree/pattern/TagChunk.h
delete mode 100755 src/include/tree/pattern/TextChunk.cpp
delete mode 100755 src/include/tree/pattern/TextChunk.h
delete mode 100755 src/include/tree/pattern/TokenTagToken.cpp
delete mode 100755 src/include/tree/pattern/TokenTagToken.h
delete mode 100755 src/include/tree/xpath/XPath.cpp
delete mode 100755 src/include/tree/xpath/XPath.h
delete mode 100755 src/include/tree/xpath/XPathElement.cpp
delete mode 100755 src/include/tree/xpath/XPathElement.h
delete mode 100644 src/include/tree/xpath/XPathLexer.cpp
delete mode 100644 src/include/tree/xpath/XPathLexer.g4
delete mode 100644 src/include/tree/xpath/XPathLexer.h
delete mode 100755 src/include/tree/xpath/XPathLexerErrorListener.cpp
delete mode 100755 src/include/tree/xpath/XPathLexerErrorListener.h
delete mode 100755 src/include/tree/xpath/XPathRuleAnywhereElement.cpp
delete mode 100755 src/include/tree/xpath/XPathRuleAnywhereElement.h
delete mode 100755 src/include/tree/xpath/XPathRuleElement.cpp
delete mode 100755 src/include/tree/xpath/XPathRuleElement.h
delete mode 100755 src/include/tree/xpath/XPathTokenAnywhereElement.cpp
delete mode 100755 src/include/tree/xpath/XPathTokenAnywhereElement.h
delete mode 100755 src/include/tree/xpath/XPathTokenElement.cpp
delete mode 100755 src/include/tree/xpath/XPathTokenElement.h
delete mode 100755 src/include/tree/xpath/XPathWildcardAnywhereElement.cpp
delete mode 100755 src/include/tree/xpath/XPathWildcardAnywhereElement.h
delete mode 100755 src/include/tree/xpath/XPathWildcardElement.cpp
delete mode 100755 src/include/tree/xpath/XPathWildcardElement.h
diff --git a/src/include/ANTLRErrorListener.cpp b/src/include/ANTLRErrorListener.cpp
deleted file mode 100644
index 6ceadb87..00000000
--- a/src/include/ANTLRErrorListener.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
-/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
- * Use of this file is governed by the BSD 3-clause license that
- * can be found in the LICENSE.txt file in the project root.
- */
-
-#include "ANTLRErrorListener.h"
-
-antlr4::ANTLRErrorListener::~ANTLRErrorListener()
-{
-}
diff --git a/src/include/ANTLRErrorListener.h b/src/include/ANTLRErrorListener.h
deleted file mode 100755
index d6efad1d..00000000
--- a/src/include/ANTLRErrorListener.h
+++ /dev/null
@@ -1,167 +0,0 @@
-/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
- * Use of this file is governed by the BSD 3-clause license that
- * can be found in the LICENSE.txt file in the project root.
- */
-
-#pragma once
-
-#include "RecognitionException.h"
-
-namespace antlrcpp {
- class BitSet;
-}
-
-namespace antlr4 {
-
- /// How to emit recognition errors (an interface in Java).
- class ANTLR4CPP_PUBLIC ANTLRErrorListener {
- public:
- virtual ~ANTLRErrorListener();
-
- ///
- /// Upon syntax error, notify any interested parties. This is not how to
- /// recover from errors or compute error messages.
- /// specifies how to recover from syntax errors and how to compute error
- /// messages. This listener's job is simply to emit a computed message,
- /// though it has enough information to create its own message in many cases.
- ///
- /// The is non-null for all syntax errors except
- /// when we discover mismatched token errors that we can recover from
- /// in-line, without returning from the surrounding rule (via the single
- /// token insertion and deletion mechanism).
- ///
- ///
- /// What parser got the error. From this
- /// object, you can access the context as well
- /// as the input stream.
- ///
- /// The offending token in the input token
- /// stream, unless recognizer is a lexer (then it's null). If
- /// no viable alternative error, {@code e} has token at which we
- /// started production for the decision.
- ///
- /// The line number in the input where the error occurred.
- ///
- /// The character position within that line where the error occurred.
- ///
- /// The message to emit.
- ///
- /// The exception generated by the parser that led to
- /// the reporting of an error. It is null in the case where
- /// the parser was able to recover in line without exiting the
- /// surrounding rule.
- virtual void syntaxError(Recognizer *recognizer, Token *offendingSymbol, size_t line,
- size_t charPositionInLine, const std::string &msg, std::exception_ptr e) = 0;
-
- /**
- * This method is called by the parser when a full-context prediction
- * results in an ambiguity.
- *
- *
Each full-context prediction which does not result in a syntax error
- * will call either {@link #reportContextSensitivity} or
- * {@link #reportAmbiguity}.
- *
- * When {@code ambigAlts} is not null, it contains the set of potentially
- * viable alternatives identified by the prediction algorithm. When
- * {@code ambigAlts} is null, use {@link ATNConfigSet#getAlts} to obtain the
- * represented alternatives from the {@code configs} argument.
- *
- * When {@code exact} is {@code true}, all of the potentially
- * viable alternatives are truly viable, i.e. this is reporting an exact
- * ambiguity. When {@code exact} is {@code false}, at least two of
- * the potentially viable alternatives are viable for the current input, but
- * the prediction algorithm terminated as soon as it determined that at
- * least the minimum potentially viable alternative is truly
- * viable.
- *
- * When the {@link PredictionMode#LL_EXACT_AMBIG_DETECTION} prediction
- * mode is used, the parser is required to identify exact ambiguities so
- * {@code exact} will always be {@code true}.
- *
- * This method is not used by lexers.
- *
- * @param recognizer the parser instance
- * @param dfa the DFA for the current decision
- * @param startIndex the input index where the decision started
- * @param stopIndex the input input where the ambiguity was identified
- * @param exact {@code true} if the ambiguity is exactly known, otherwise
- * {@code false}. This is always {@code true} when
- * {@link PredictionMode#LL_EXACT_AMBIG_DETECTION} is used.
- * @param ambigAlts the potentially ambiguous alternatives, or {@code null}
- * to indicate that the potentially ambiguous alternatives are the complete
- * set of represented alternatives in {@code configs}
- * @param configs the ATN configuration set where the ambiguity was
- * identified
- */
- virtual void reportAmbiguity(Parser *recognizer, const dfa::DFA &dfa, size_t startIndex, size_t stopIndex, bool exact,
- const antlrcpp::BitSet &ambigAlts, atn::ATNConfigSet *configs) = 0;
-
- /**
- * This method is called when an SLL conflict occurs and the parser is about
- * to use the full context information to make an LL decision.
- *
- * If one or more configurations in {@code configs} contains a semantic
- * predicate, the predicates are evaluated before this method is called. The
- * subset of alternatives which are still viable after predicates are
- * evaluated is reported in {@code conflictingAlts}.
- *
- * This method is not used by lexers.
- *
- * @param recognizer the parser instance
- * @param dfa the DFA for the current decision
- * @param startIndex the input index where the decision started
- * @param stopIndex the input index where the SLL conflict occurred
- * @param conflictingAlts The specific conflicting alternatives. If this is
- * {@code null}, the conflicting alternatives are all alternatives
- * represented in {@code configs}. At the moment, conflictingAlts is non-null
- * (for the reference implementation, but Sam's optimized version can see this
- * as null).
- * @param configs the ATN configuration set where the SLL conflict was
- * detected
- */
- virtual void reportAttemptingFullContext(Parser *recognizer, const dfa::DFA &dfa, size_t startIndex, size_t stopIndex,
- const antlrcpp::BitSet &conflictingAlts, atn::ATNConfigSet *configs) = 0;
-
- /**
- * This method is called by the parser when a full-context prediction has a
- * unique result.
- *
- * Each full-context prediction which does not result in a syntax error
- * will call either {@link #reportContextSensitivity} or
- * {@link #reportAmbiguity}.
- *
- * For prediction implementations that only evaluate full-context
- * predictions when an SLL conflict is found (including the default
- * {@link ParserATNSimulator} implementation), this method reports cases
- * where SLL conflicts were resolved to unique full-context predictions,
- * i.e. the decision was context-sensitive. This report does not necessarily
- * indicate a problem, and it may appear even in completely unambiguous
- * grammars.
- *
- * {@code configs} may have more than one represented alternative if the
- * full-context prediction algorithm does not evaluate predicates before
- * beginning the full-context prediction. In all cases, the final prediction
- * is passed as the {@code prediction} argument.
- *
- * Note that the definition of "context sensitivity" in this method
- * differs from the concept in {@link DecisionInfo#contextSensitivities}.
- * This method reports all instances where an SLL conflict occurred but LL
- * parsing produced a unique result, whether or not that unique result
- * matches the minimum alternative in the SLL conflicting set.
- *
- * This method is not used by lexers.
- *
- * @param recognizer the parser instance
- * @param dfa the DFA for the current decision
- * @param startIndex the input index where the decision started
- * @param stopIndex the input index where the context sensitivity was
- * finally determined
- * @param prediction the unambiguous result of the full-context prediction
- * @param configs the ATN configuration set where the unambiguous prediction
- * was determined
- */
- virtual void reportContextSensitivity(Parser *recognizer, const dfa::DFA &dfa, size_t startIndex, size_t stopIndex,
- size_t prediction, atn::ATNConfigSet *configs) = 0;
- };
-
-} // namespace antlr4
diff --git a/src/include/ANTLRErrorStrategy.cpp b/src/include/ANTLRErrorStrategy.cpp
deleted file mode 100644
index 1655a573..00000000
--- a/src/include/ANTLRErrorStrategy.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
-/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
- * Use of this file is governed by the BSD 3-clause license that
- * can be found in the LICENSE.txt file in the project root.
- */
-
-#include "ANTLRErrorStrategy.h"
-
-antlr4::ANTLRErrorStrategy::~ANTLRErrorStrategy()
-{
-}
diff --git a/src/include/ANTLRErrorStrategy.h b/src/include/ANTLRErrorStrategy.h
deleted file mode 100755
index a3eecd14..00000000
--- a/src/include/ANTLRErrorStrategy.h
+++ /dev/null
@@ -1,121 +0,0 @@
-/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
- * Use of this file is governed by the BSD 3-clause license that
- * can be found in the LICENSE.txt file in the project root.
- */
-
-#pragma once
-
-#include "Token.h"
-
-namespace antlr4 {
-
- ///
- /// The interface for defining strategies to deal with syntax errors encountered
- /// during a parse by ANTLR-generated parsers. We distinguish between three
- /// different kinds of errors:
- ///
- ///
- /// - The parser could not figure out which path to take in the ATN (none of
- /// the available alternatives could possibly match)
- /// - The current input does not match what we were looking for
- /// - A predicate evaluated to false
- ///
- ///
- /// Implementations of this interface report syntax errors by calling
- /// .
- ///
- /// TODO: what to do about lexers
- ///
- class ANTLR4CPP_PUBLIC ANTLRErrorStrategy {
- public:
-
- ///
- /// Reset the error handler state for the specified {@code recognizer}.
- /// the parser instance
- virtual ~ANTLRErrorStrategy();
-
- virtual void reset(Parser *recognizer) = 0;
-
- /**
- * This method is called when an unexpected symbol is encountered during an
- * inline match operation, such as {@link Parser#match}. If the error
- * strategy successfully recovers from the match failure, this method
- * returns the {@link Token} instance which should be treated as the
- * successful result of the match.
- *
- * This method handles the consumption of any tokens - the caller should
- * not call {@link Parser#consume} after a successful recovery.
- *
- * Note that the calling code will not report an error if this method
- * returns successfully. The error strategy implementation is responsible
- * for calling {@link Parser#notifyErrorListeners} as appropriate.
- *
- * @param recognizer the parser instance
- * @throws RecognitionException if the error strategy was not able to
- * recover from the unexpected input symbol
- */
- virtual Token* recoverInline(Parser *recognizer) = 0;
-
- ///
- /// This method is called to recover from exception {@code e}. This method is
- /// called after by the default exception handler
- /// generated for a rule method.
- ///
- ///
- /// the parser instance
- /// the recognition exception to recover from
- /// if the error strategy could not recover from
- /// the recognition exception
- virtual void recover(Parser *recognizer, std::exception_ptr e) = 0;
-
- ///
- /// This method provides the error handler with an opportunity to handle
- /// syntactic or semantic errors in the input stream before they result in a
- /// .
- ///
- /// The generated code currently contains calls to after
- /// entering the decision state of a closure block ({@code (...)*} or
- /// {@code (...)+}).
- ///
- /// For an implementation based on Jim Idle's "magic sync" mechanism, see
- /// .
- ///
- ///
- /// the parser instance
- /// if an error is detected by the error
- /// strategy but cannot be automatically recovered at the current state in
- /// the parsing process
- virtual void sync(Parser *recognizer) = 0;
-
- ///
- /// Tests whether or not {@code recognizer} is in the process of recovering
- /// from an error. In error recovery mode, adds
- /// symbols to the parse tree by calling
- /// {@link Parser#createErrorNode(ParserRuleContext, Token)} then
- /// {@link ParserRuleContext#addErrorNode(ErrorNode)} instead of
- /// {@link Parser#createTerminalNode(ParserRuleContext, Token)}.
- ///
- /// the parser instance
- /// {@code true} if the parser is currently recovering from a parse
- /// error, otherwise {@code false}
- virtual bool inErrorRecoveryMode(Parser *recognizer) = 0;
-
- ///
- /// This method is called by when the parser successfully matches an input
- /// symbol.
- ///
- /// the parser instance
- virtual void reportMatch(Parser *recognizer) = 0;
-
- ///
- /// Report any kind of . This method is called by
- /// the default exception handler generated for a rule method.
- ///
- /// the parser instance
- /// the recognition exception to report
- virtual void reportError(Parser *recognizer, const RecognitionException &e) = 0;
- };
-
-} // namespace antlr4
diff --git a/src/include/ANTLRFileStream.cpp b/src/include/ANTLRFileStream.cpp
deleted file mode 100755
index 674817ac..00000000
--- a/src/include/ANTLRFileStream.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
- * Use of this file is governed by the BSD 3-clause license that
- * can be found in the LICENSE.txt file in the project root.
- */
-
-#include "ANTLRFileStream.h"
-
-using namespace antlr4;
-
-void ANTLRFileStream::loadFromFile(const std::string &fileName) {
- _fileName = fileName;
- if (_fileName.empty()) {
- return;
- }
-
- std::ifstream stream(fileName, std::ios::binary);
-
- ANTLRInputStream::load(stream);
-}
-
-std::string ANTLRFileStream::getSourceName() const {
- return _fileName;
-}
diff --git a/src/include/ANTLRFileStream.h b/src/include/ANTLRFileStream.h
deleted file mode 100755
index 6c7d619a..00000000
--- a/src/include/ANTLRFileStream.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
- * Use of this file is governed by the BSD 3-clause license that
- * can be found in the LICENSE.txt file in the project root.
- */
-
-#pragma once
-
-#include "ANTLRInputStream.h"
-
-namespace antlr4 {
-
- /// This is an ANTLRInputStream that is loaded from a file all at once
- /// when you construct the object (or call load()).
- // TODO: this class needs testing.
- class ANTLR4CPP_PUBLIC ANTLRFileStream : public ANTLRInputStream {
- public:
- ANTLRFileStream() = default;
- ANTLRFileStream(const std::string &) = delete;
- ANTLRFileStream(const char *data, size_t length) = delete;
- ANTLRFileStream(std::istream &stream) = delete;
-
- // Assumes a file name encoded in UTF-8 and file content in the same encoding (with or w/o BOM).
- virtual void loadFromFile(const std::string &fileName);
- virtual std::string getSourceName() const override;
-
- private:
- std::string _fileName; // UTF-8 encoded file name.
- };
-
-} // namespace antlr4
diff --git a/src/include/ANTLRInputStream.cpp b/src/include/ANTLRInputStream.cpp
deleted file mode 100755
index b6470af9..00000000
--- a/src/include/ANTLRInputStream.cpp
+++ /dev/null
@@ -1,180 +0,0 @@
-/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
- * Use of this file is governed by the BSD 3-clause license that
- * can be found in the LICENSE.txt file in the project root.
- */
-
-#include
-
-#include "Exceptions.h"
-#include "misc/Interval.h"
-#include "IntStream.h"
-
-#include "support/Utf8.h"
-#include "support/CPPUtils.h"
-
-#include "ANTLRInputStream.h"
-
-using namespace antlr4;
-using namespace antlrcpp;
-
-using misc::Interval;
-
-ANTLRInputStream::ANTLRInputStream() {
- InitializeInstanceFields();
-}
-
-ANTLRInputStream::ANTLRInputStream(std::string_view input): ANTLRInputStream() {
- load(input.data(), input.length());
-}
-
-ANTLRInputStream::ANTLRInputStream(const char *data, size_t length) {
- load(data, length);
-}
-
-ANTLRInputStream::ANTLRInputStream(std::istream &stream): ANTLRInputStream() {
- load(stream);
-}
-
-void ANTLRInputStream::load(const std::string &input, bool lenient) {
- load(input.data(), input.size(), lenient);
-}
-
-void ANTLRInputStream::load(const char *data, size_t length, bool lenient) {
- // Remove the UTF-8 BOM if present.
- const char *bom = "\xef\xbb\xbf";
- if (length >= 3 && strncmp(data, bom, 3) == 0) {
- data += 3;
- length -= 3;
- }
- if (lenient) {
- _data = Utf8::lenientDecode(std::string_view(data, length));
- } else {
- auto maybe_utf32 = Utf8::strictDecode(std::string_view(data, length));
- if (!maybe_utf32.has_value()) {
- throw IllegalArgumentException("UTF-8 string contains an illegal byte sequence");
- }
- _data = std::move(maybe_utf32).value();
- }
- p = 0;
-}
-
-void ANTLRInputStream::load(std::istream &stream, bool lenient) {
- if (!stream.good() || stream.eof()) // No fail, bad or EOF.
- return;
-
- _data.clear();
-
- std::string s((std::istreambuf_iterator(stream)), std::istreambuf_iterator());
- load(s.data(), s.length(), lenient);
-}
-
-void ANTLRInputStream::reset() {
- p = 0;
-}
-
-void ANTLRInputStream::consume() {
- if (p >= _data.size()) {
- assert(LA(1) == IntStream::EOF);
- throw IllegalStateException("cannot consume EOF");
- }
-
- if (p < _data.size()) {
- p++;
- }
-}
-
-size_t ANTLRInputStream::LA(ssize_t i) {
- if (i == 0) {
- return 0; // undefined
- }
-
- ssize_t position = static_cast(p);
- if (i < 0) {
- i++; // e.g., translate LA(-1) to use offset i=0; then _data[p+0-1]
- if ((position + i - 1) < 0) {
- return IntStream::EOF; // invalid; no char before first char
- }
- }
-
- if ((position + i - 1) >= static_cast(_data.size())) {
- return IntStream::EOF;
- }
-
- return _data[static_cast((position + i - 1))];
-}
-
-size_t ANTLRInputStream::LT(ssize_t i) {
- return LA(i);
-}
-
-size_t ANTLRInputStream::index() {
- return p;
-}
-
-size_t ANTLRInputStream::size() {
- return _data.size();
-}
-
-// Mark/release do nothing. We have entire buffer.
-ssize_t ANTLRInputStream::mark() {
- return -1;
-}
-
-void ANTLRInputStream::release(ssize_t /* marker */) {
-}
-
-void ANTLRInputStream::seek(size_t index) {
- if (index <= p) {
- p = index; // just jump; don't update stream state (line, ...)
- return;
- }
- // seek forward, consume until p hits index or n (whichever comes first)
- index = std::min(index, _data.size());
- while (p < index) {
- consume();
- }
-}
-
-std::string ANTLRInputStream::getText(const Interval &interval) {
- if (interval.a < 0 || interval.b < 0) {
- return "";
- }
-
- size_t start = static_cast(interval.a);
- size_t stop = static_cast(interval.b);
-
-
- if (stop >= _data.size()) {
- stop = _data.size() - 1;
- }
-
- size_t count = stop - start + 1;
- if (start >= _data.size()) {
- return "";
- }
-
- auto maybeUtf8 = Utf8::strictEncode(std::u32string_view(_data).substr(start, count));
- if (!maybeUtf8.has_value()) {
- throw IllegalArgumentException("Input stream contains invalid Unicode code points");
- }
- return std::move(maybeUtf8).value();
-}
-
-std::string ANTLRInputStream::getSourceName() const {
- if (name.empty()) {
- return IntStream::UNKNOWN_SOURCE_NAME;
- }
- return name;
-}
-
-std::string ANTLRInputStream::toString() const {
- auto maybeUtf8 = Utf8::strictEncode(_data);
- if (!maybeUtf8.has_value()) {
- throw IllegalArgumentException("Input stream contains invalid Unicode code points");
- }
- return std::move(maybeUtf8).value();
-}
-
-void ANTLRInputStream::InitializeInstanceFields() {
- p = 0;
-}
diff --git a/src/include/ANTLRInputStream.h b/src/include/ANTLRInputStream.h
deleted file mode 100755
index 413eadef..00000000
--- a/src/include/ANTLRInputStream.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
- * Use of this file is governed by the BSD 3-clause license that
- * can be found in the LICENSE.txt file in the project root.
- */
-
-#pragma once
-
-#include
-
-#include "CharStream.h"
-
-namespace antlr4 {
-
- // Vacuum all input from a stream and then treat it
- // like a string. Can also pass in a string or char[] to use.
- // Input is expected to be encoded in UTF-8 and converted to UTF-32 internally.
- class ANTLR4CPP_PUBLIC ANTLRInputStream : public CharStream {
- protected:
- /// The data being scanned.
- // UTF-32
- std::u32string _data;
-
- /// 0..n-1 index into string of next char
- size_t p;
-
- public:
- /// What is name or source of this char stream?
- std::string name;
-
- ANTLRInputStream();
-
- ANTLRInputStream(std::string_view input);
-
- ANTLRInputStream(const char *data, size_t length);
- ANTLRInputStream(std::istream &stream);
-
- virtual void load(const std::string &input, bool lenient);
- virtual void load(const char *data, size_t length, bool lenient);
- virtual void load(std::istream &stream, bool lenient);
-
- virtual void load(const std::string &input) { load(input, false); }
- virtual void load(const char *data, size_t length) { load(data, length, false); }
- virtual void load(std::istream &stream) { load(stream, false); }
-
- /// Reset the stream so that it's in the same state it was
- /// when the object was created *except* the data array is not
- /// touched.
- virtual void reset();
- virtual void consume() override;
- virtual size_t LA(ssize_t i) override;
- virtual size_t LT(ssize_t i);
-
- ///
- /// Return the current input symbol index 0..n where n indicates the
- /// last symbol has been read. The index is the index of char to
- /// be returned from LA(1).
- ///
- virtual size_t index() override;
- virtual size_t size() override;
-
- ///
- /// mark/release do nothing; we have entire buffer
- virtual ssize_t mark() override;
- virtual void release(ssize_t marker) override;
-
- ///
- /// consume() ahead until p==index; can't just set p=index as we must
- /// update line and charPositionInLine. If we seek backwards, just set p
- ///
- virtual void seek(size_t index) override;
- virtual std::string getText(const misc::Interval &interval) override;
- virtual std::string getSourceName() const override;
- virtual std::string toString() const override;
-
- private:
- void InitializeInstanceFields();
- };
-
-} // namespace antlr4
diff --git a/src/include/antlr4-common.h b/src/include/antlr4-common.h
deleted file mode 100644
index d7f9a65f..00000000
--- a/src/include/antlr4-common.h
+++ /dev/null
@@ -1,101 +0,0 @@
-/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
- * Use of this file is governed by the BSD 3-clause license that
- * can be found in the LICENSE.txt file in the project root.
- */
-
-#pragma once
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include