diff options
author | aneporada <aneporada@yandex-team.ru> | 2022-02-10 16:47:55 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:55 +0300 |
commit | 9620067c7224b19b8e9ad6222468ecd222caae13 (patch) | |
tree | cd288cc181891dabff358d6d4bd22c9712ae0a35 /contrib/libs/antlr3_cpp_runtime | |
parent | 40aa65b121746185908e51e32dca11ccee70140b (diff) | |
download | ydb-9620067c7224b19b8e9ad6222468ecd222caae13.tar.gz |
Restoring authorship annotation for <aneporada@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/antlr3_cpp_runtime')
4 files changed, 10 insertions, 10 deletions
diff --git a/contrib/libs/antlr3_cpp_runtime/include/antlr3baserecognizer.inl b/contrib/libs/antlr3_cpp_runtime/include/antlr3baserecognizer.inl index b0c3fe8d519..be61b8ee590 100644 --- a/contrib/libs/antlr3_cpp_runtime/include/antlr3baserecognizer.inl +++ b/contrib/libs/antlr3_cpp_runtime/include/antlr3baserecognizer.inl @@ -651,7 +651,7 @@ ANTLR_MARKER BaseRecognizer<ImplTraits, StreamType>::getRuleMemoization( ANTLR_I /* The rule memos are an ANTLR3_LIST of ANTLR3_LIST. */ typedef IntTrie<ImplTraits, ANTLR_MARKER> RuleListType; - typedef TrieEntry<ImplTraits, std::shared_ptr<RuleListType>> EntryType; + typedef TrieEntry<ImplTraits, std::shared_ptr<RuleListType>> EntryType; typedef TrieEntry<ImplTraits, ANTLR_MARKER> SubEntryType; ANTLR_MARKER stopIndex; EntryType* entry; @@ -670,14 +670,14 @@ ANTLR_MARKER BaseRecognizer<ImplTraits, StreamType>::getRuleMemoization( ANTLR_I * no idea of the size, but you should remember that this will cause the leftmost * bit match algorithm to run to 63 bits, which will be the whole time spent in the trie ;-) */ - m_state->get_ruleMemo()->add( ruleIndex, std::make_shared<RuleListType>(63) ); + m_state->get_ruleMemo()->add( ruleIndex, std::make_shared<RuleListType>(63) ); /* We cannot have a stopIndex in a trie we have just created of course */ return MEMO_RULE_UNKNOWN; } - std::shared_ptr<RuleListType> ruleList = entry->get_data(); + std::shared_ptr<RuleListType> ruleList = entry->get_data(); /* See if there is a stop index associated with the supplied start index. */ @@ -732,7 +732,7 @@ void BaseRecognizer<ImplTraits, StreamType>::memoize(ANTLR_MARKER ruleIndex, ANT /* The rule memos are an ANTLR3_LIST of ANTLR3_LIST. */ typedef IntTrie<ImplTraits, ANTLR_MARKER> RuleListType; - typedef TrieEntry<ImplTraits, std::shared_ptr<RuleListType>> EntryType; + typedef TrieEntry<ImplTraits, std::shared_ptr<RuleListType>> EntryType; EntryType* entry; ANTLR_MARKER stopIndex; SuperType* super = static_cast<SuperType*>(this); @@ -744,7 +744,7 @@ void BaseRecognizer<ImplTraits, StreamType>::memoize(ANTLR_MARKER ruleIndex, ANT if (entry != NULL) { - std::shared_ptr<RuleListType> ruleList = entry->get_data(); + std::shared_ptr<RuleListType> ruleList = entry->get_data(); /* If we don't already have this entry, append it. The memoize trie does not * accept duplicates so it won't add it if already there and we just ignore the diff --git a/contrib/libs/antlr3_cpp_runtime/include/antlr3exception.inl b/contrib/libs/antlr3_cpp_runtime/include/antlr3exception.inl index 27f00bdda81..f0d82d817d4 100644 --- a/contrib/libs/antlr3_cpp_runtime/include/antlr3exception.inl +++ b/contrib/libs/antlr3_cpp_runtime/include/antlr3exception.inl @@ -307,7 +307,7 @@ void ANTLR_Exception<ImplTraits, Ex, StreamType>::displayRecognitionError( ANTLR // possible tokens at this point, but we did not see any // member of that set. // - str_stream << " : unexpected input :"; + str_stream << " : unexpected input :"; // What tokens could we have accepted at this point in the // parse? @@ -327,7 +327,7 @@ void ANTLR_Exception<ImplTraits, Ex, StreamType>::displayRecognitionError( ANTLR // here, but you should do whatever makes sense for you of course. // No token number 0, so look for bit 1 and on. // - str_stream << " expected one of : "; + str_stream << " expected one of : "; for (bit = 1; bit < numbits && count < 8 && count < size; bit++) { // TODO: This doesn;t look right - should be asking if the bit is set!! @@ -343,7 +343,7 @@ void ANTLR_Exception<ImplTraits, Ex, StreamType>::displayRecognitionError( ANTLR } else { - str_stream << " nothing is expected here\n"; + str_stream << " nothing is expected here\n"; } } break; diff --git a/contrib/libs/antlr3_cpp_runtime/include/antlr3recognizersharedstate.hpp b/contrib/libs/antlr3_cpp_runtime/include/antlr3recognizersharedstate.hpp index ef0855ea08a..da64f7a9a4d 100644 --- a/contrib/libs/antlr3_cpp_runtime/include/antlr3recognizersharedstate.hpp +++ b/contrib/libs/antlr3_cpp_runtime/include/antlr3recognizersharedstate.hpp @@ -73,7 +73,7 @@ public: typedef typename AllocPolicyType::template VectorType<RewriteStreamType> RewriteStreamsType; typedef IntTrie<ImplTraits, ANTLR_MARKER> RuleListType; - typedef IntTrie<ImplTraits, std::shared_ptr<RuleListType>> RuleMemoType; + typedef IntTrie<ImplTraits, std::shared_ptr<RuleListType>> RuleMemoType; private: /** Points to the first in a possible chain of exceptions that the diff --git a/contrib/libs/antlr3_cpp_runtime/include/antlr3recognizersharedstate.inl b/contrib/libs/antlr3_cpp_runtime/include/antlr3recognizersharedstate.inl index 27732cb34fc..a18902271f0 100644 --- a/contrib/libs/antlr3_cpp_runtime/include/antlr3recognizersharedstate.inl +++ b/contrib/libs/antlr3_cpp_runtime/include/antlr3recognizersharedstate.inl @@ -8,7 +8,7 @@ RecognizerSharedState<ImplTraits, StreamType>::RecognizerSharedState() m_error = false; m_errorRecovery = false; m_failed = false; - m_token_present = false; + m_token_present = false; m_lastErrorIndex = 0; m_errorCount = 0; m_backtracking = false; |