diff options
author | isiv <isiv@yandex-team.ru> | 2022-02-10 16:47:54 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:54 +0300 |
commit | 40aa65b121746185908e51e32dca11ccee70140b (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /contrib/libs/antlr3_cpp_runtime/include/antlr3treeparser.hpp | |
parent | f20e3f1949626df2ef9d81d7618ec367b0c34f6b (diff) | |
download | ydb-40aa65b121746185908e51e32dca11ccee70140b.tar.gz |
Restoring authorship annotation for <isiv@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/antlr3_cpp_runtime/include/antlr3treeparser.hpp')
-rw-r--r-- | contrib/libs/antlr3_cpp_runtime/include/antlr3treeparser.hpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/contrib/libs/antlr3_cpp_runtime/include/antlr3treeparser.hpp b/contrib/libs/antlr3_cpp_runtime/include/antlr3treeparser.hpp index 5d8fd8f303..c1395382b5 100644 --- a/contrib/libs/antlr3_cpp_runtime/include/antlr3treeparser.hpp +++ b/contrib/libs/antlr3_cpp_runtime/include/antlr3treeparser.hpp @@ -1,5 +1,5 @@ -#ifndef ANTLR3TREEPARSER_HPP -#define ANTLR3TREEPARSER_HPP +#ifndef ANTLR3TREEPARSER_HPP +#define ANTLR3TREEPARSER_HPP // [The "BSD licence"] // Copyright (c) 2005-2009 Gokulakannan Somasundaram, ElectronDB @@ -34,66 +34,66 @@ * if necessary, and contains function can be supported If the hash key * could be unique I would have invented the perfect compression algorithm ;-) */ -namespace antlr3 { +namespace antlr3 { template<class ImplTraits> -class TreeParser : public ImplTraits::template RecognizerType< typename ImplTraits::TreeNodeStreamType > +class TreeParser : public ImplTraits::template RecognizerType< typename ImplTraits::TreeNodeStreamType > { public: - typedef typename ImplTraits::TreeNodeStreamType TreeNodeStreamType; - typedef TreeNodeStreamType StreamType; - typedef typename TreeNodeStreamType::IntStreamType IntStreamType; - typedef typename ImplTraits::TreeType TreeType; - typedef typename ImplTraits::TreeTypePtr TreeTypePtr; - typedef TreeType TokenType; - typedef typename ImplTraits::template ExceptionBaseType<TreeNodeStreamType> ExceptionBaseType; - typedef typename ImplTraits::template RecognizerType< typename ImplTraits::TreeNodeStreamType > RecognizerType; - typedef typename RecognizerType::RecognizerSharedStateType RecognizerSharedStateType; - typedef Empty TokenSourceType; - typedef typename ImplTraits::BitsetListType BitsetListType; - typedef typename ImplTraits::StringType StringType; - typedef typename ImplTraits::CommonTokenType CommonTokenType; + typedef typename ImplTraits::TreeNodeStreamType TreeNodeStreamType; + typedef TreeNodeStreamType StreamType; + typedef typename TreeNodeStreamType::IntStreamType IntStreamType; + typedef typename ImplTraits::TreeType TreeType; + typedef typename ImplTraits::TreeTypePtr TreeTypePtr; + typedef TreeType TokenType; + typedef typename ImplTraits::template ExceptionBaseType<TreeNodeStreamType> ExceptionBaseType; + typedef typename ImplTraits::template RecognizerType< typename ImplTraits::TreeNodeStreamType > RecognizerType; + typedef typename RecognizerType::RecognizerSharedStateType RecognizerSharedStateType; + typedef Empty TokenSourceType; + typedef typename ImplTraits::BitsetListType BitsetListType; + typedef typename ImplTraits::StringType StringType; + typedef typename ImplTraits::CommonTokenType CommonTokenType; private: /** Pointer to the common tree node stream for the parser */ - TreeNodeStreamType* m_ctnstream; + TreeNodeStreamType* m_ctnstream; public: - TreeParser( ANTLR_UINT32 sizeHint, TreeNodeStreamType* ctnstream, - RecognizerSharedStateType* state); - TreeNodeStreamType* get_ctnstream() const; - IntStreamType* get_istream() const; - RecognizerType* get_rec(); + TreeParser( ANTLR_UINT32 sizeHint, TreeNodeStreamType* ctnstream, + RecognizerSharedStateType* state); + TreeNodeStreamType* get_ctnstream() const; + IntStreamType* get_istream() const; + RecognizerType* get_rec(); - //same as above. Just that get_istream exists for lexer, parser, treeparser - //get_parser_istream exists only for parser, treeparser. So use it accordingly - IntStreamType* get_parser_istream() const; + //same as above. Just that get_istream exists for lexer, parser, treeparser + //get_parser_istream exists only for parser, treeparser. So use it accordingly + IntStreamType* get_parser_istream() const; /** Set the input stream and reset the parser */ - void setTreeNodeStream(TreeNodeStreamType* input); + void setTreeNodeStream(TreeNodeStreamType* input); /** Return a pointer to the input stream */ TreeNodeStreamType* getTreeNodeStream(); - TokenType* getMissingSymbol( IntStreamType* istream, - ExceptionBaseType* e, - ANTLR_UINT32 expectedTokenType, - BitsetListType* follow); + TokenType* getMissingSymbol( IntStreamType* istream, + ExceptionBaseType* e, + ANTLR_UINT32 expectedTokenType, + BitsetListType* follow); /** Pointer to a function that knows how to free resources of an ANTLR3 tree parser. */ - ~TreeParser(); + ~TreeParser(); - void fillExceptionData( ExceptionBaseType* ex ); - void displayRecognitionError( ANTLR_UINT8** tokenNames, ExceptionBaseType* ex ); - void exConstruct(); - void mismatch(ANTLR_UINT32 ttype, BitsetListType* follow); + void fillExceptionData( ExceptionBaseType* ex ); + void displayRecognitionError( ANTLR_UINT8** tokenNames, ExceptionBaseType* ex ); + void exConstruct(); + void mismatch(ANTLR_UINT32 ttype, BitsetListType* follow); }; -} +} #include "antlr3treeparser.inl" |