|
|
using | TokensContainer = std::vector<Token> |
| | a simple alias
|
|
using | const_iterator = TokensContainer::const_iterator |
| | a simple alias
|
|
using | size_type = TokensContainer::size_type |
| | a simple alias
|
| static bool | isValidIdentifier (std::string_view, const IsValidIdentifierOptions &) |
| static bool | isValidIdentifier (std::string_view, const bool=true) |
| static void | checkNotEndOfLine (const std::string &, const_iterator &, const const_iterator) |
| | an helper method throwing an exception if the given iterator is egal to the third argument (which shall point after the last token of the line)
|
| static void | checkNotEndOfLine (const std::string &, const std::string &, const_iterator &, const const_iterator) |
| | an helper method throwing an exception if the given iterator is egal to the fourth argument (which shall point after the last token of the line)
|
| static void | readSpecifiedToken (const std::string &, const std::string &, const_iterator &, const const_iterator) |
| | an helper method throwing an exception if the given iterator is egal to the fourth argument (which shall point after the last token of the line) or if the given token is not equal to the expected value
|
| static unsigned int | readUnsignedInt (const_iterator &, const const_iterator) |
| | an helper method to extract an unsigned int from the given token
|
| static std::string | readString (const_iterator &, const const_iterator) |
| | an helper method to extract a string from the given token
|
| static std::vector< std::string > | readArray (const std::string &, const_iterator &, const const_iterator) |
| | an helper method to extract a set of values from the given as an array
|
| static void | readArray (const std::string &, std::vector< std::string > &, const_iterator &, const const_iterator) |
| | an helper method to extract a set of values from the given as an array
|
| static std::vector< Token > | readList (const std::string &, const std::string &, const std::string &, const_iterator &, const const_iterator) |
| | extract a list of token
|
| static void | readList (std::vector< Token > &, const std::string &, const std::string &, const std::string &, const_iterator &, const const_iterator) |
| | extract a list of token
|
| static std::vector< std::string > | readStringArray (const_iterator &, const const_iterator) |
| | an helper method to extract a set of values from the given as an array
|
| static double | readDouble (const_iterator &, const const_iterator) |
| | an helper method to extract a double from the given token
|
| static int | readInt (const_iterator &, const const_iterator) |
| | an helper method to extract a int from the given token
|
| void | checkNotEndOfFile (const_iterator) |
| void | readSpecifiedToken (const std::string &, const_iterator &) |
| void | readString (std::string &, const_iterator &) |
| std::string | readString (const_iterator &) |
|
| ~ParserBase () noexcept override |
| | destructor
|
| virtual void | parseStream (std::istream &, Token::size_type &, const std::string &) |
| | tokenize the lines of a stream
|
| virtual void | splitLine (const std::string &, const Token::size_type) |
|
virtual void | parseChar (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type) |
|
virtual void | parseString (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type, const char) |
|
virtual void | parseCComment (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type) |
|
virtual void | parseCxxComment (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type) |
|
virtual void | try_join (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type, const char) |
|
virtual void | try_join (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type, const char, const char) |
| virtual void | parseNumber (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type) |
| | read a number
|
|
virtual void | parsePreprocessorDirective (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const std::string::const_iterator, const Token::size_type) |
|
virtual void | parseStandardLine (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const std::string::const_iterator, const Token::size_type) |
| virtual void | parseRawString (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type, const Token::size_type) |
| | read the contents of a raw string literal, which starts at the current iterator, past the opening R"delim( prefix
|
|
| CxxTokenizerOptions () |
| | default constructor
|
|
| CxxTokenizerOptions (const CxxTokenizerOptions &) |
| | copy constructor
|
|
| CxxTokenizerOptions (CxxTokenizerOptions &&) noexcept |
| | move constructor
|
|
CxxTokenizerOptions & | operator= (const CxxTokenizerOptions &) |
| | standard assignement
|
|
CxxTokenizerOptions & | operator= (CxxTokenizerOptions &&) noexcept |
| | move assignement
|
|
| ~CxxTokenizerOptions () |
| | destructor
|
|
static bool | isValidFunctionIdentifier (const std::string &, const bool=true) |
|
std::vector< std::string > | additional_separators |
|
TokensContainer | tokens |
| | list of tokens read
|
| std::map< Token::size_type, std::string > | comments |
| | store the comments which have been removed by the stripComments method. The key of the map is the line a comment starts on and the value is the values of the comments of this line, in the order they appear in the line, separated by a space character.
|
|
bool | cStyleCommentOpened = false |
| | if true, a cStyle comment what opened when the last line treatment was finised
|
| bool | rawStringOpened = false |
|
std::string | currentRawStringDelimiter |
| | name of the current delimiter for a raw string
|
|
bool | bKeepCommentBoundaries = false |
| | if true, keep the comment boundaries
|
|
bool | shallMergeStrings = false |
| | if true, successive strings are merged
|
|
bool | allowStrayHashCharacter = false |
| | allow stray hash character
|
|
bool | treatHashCharacterAsCommentDelimiter = false |
| | the hash character can start a comment, as in python, shell, etc..
|
|
bool | allowStrayBackSlash = false |
| | allow stray backslash
|
|
bool | treatPreprocessorDirectives = true |
| | treat preprocessor directives
|
|
bool | treatStrings = true |
| | treat strings and characters If false, the ' and '"' are treated as indivdual tokens
|
|
bool | treatNumbers = true |
| | extract number
|
|
bool | treatCComments = true |
| | treat comments
|
|
bool | treatCxxComments = true |
| | treat comments
|
| bool | joinCxxTwoCharactersSeparators = true |
|
bool | graveAccentAsSeparator = true |
| | strings and characters
|
| bool | charAsString = false |
|
bool | dotAsSeparator = true |
| | treat . as a separator
|
|
bool | plusAsSeparator = true |
| | treat + as a separator
|
|
bool | minusAsSeparator = true |
| | treat - as a separator
|
|
bool | addCurlyBraces = false |
| | add curly braces at the beginning and at the end of the file
|