aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/antlr3_cpp_runtime
diff options
context:
space:
mode:
authoraneporada <aneporada@yandex-team.ru>2022-02-10 16:47:56 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:56 +0300
commitdbca3ecc91dd33d6527ec66a8b06dd6fcb2a3a3e (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /contrib/libs/antlr3_cpp_runtime
parent9620067c7224b19b8e9ad6222468ecd222caae13 (diff)
downloadydb-dbca3ecc91dd33d6527ec66a8b06dd6fcb2a3a3e.tar.gz
Restoring authorship annotation for <aneporada@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/antlr3_cpp_runtime')
-rw-r--r--contrib/libs/antlr3_cpp_runtime/include/antlr3baserecognizer.inl10
-rw-r--r--contrib/libs/antlr3_cpp_runtime/include/antlr3exception.inl6
-rw-r--r--contrib/libs/antlr3_cpp_runtime/include/antlr3recognizersharedstate.hpp2
-rw-r--r--contrib/libs/antlr3_cpp_runtime/include/antlr3recognizersharedstate.inl2
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 be61b8ee590..b0c3fe8d519 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 f0d82d817d4..27f00bdda81 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 da64f7a9a4d..ef0855ea08a 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 a18902271f0..27732cb34fc 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;