tfel
Loading...
Searching...
No Matches
tfel::utilities::CxxTokenizerOptions Struct Reference

list of options that can be used to tune the behaviour of the CxxTokenizer class. More...

#include </home/runner/work/tfel/tfel/include/TFEL/Utilities/CxxTokenizerOptions.hxx>

Inheritance diagram for tfel::utilities::CxxTokenizerOptions:
tfel::utilities::CxxTokenizer mfront::DSLBase mtest::SchemeParserBase tfel::check::TestLauncher tfel::utilities::ParserBase mfront::BehaviourDSLCommon mfront::MaterialPropertyDSL mfront::ModelDSLCommon mtest::SingleStructureSchemeParser tfel::utilities::ConfigParser tfel::utilities::TestDocParser mfront::BehaviourDSLBase< DefaultDSLBase > mfront::BehaviourDSLBase< ImplicitDSLBase > mfront::BehaviourDSLBase< IsotropicBehaviourDSLBase > mfront::BehaviourDSLBase< RungeKuttaDSLBase > mfront::BehaviourDSLBase< Child > mfront::ModelDSLBase< ModelDSL > mfront::ModelDSLBase< Child > mtest::MTestParser mtest::PipeTestParser

Public Member Functions

 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

Public Attributes

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

Detailed Description

list of options that can be used to tune the behaviour of the CxxTokenizer class.

Member Data Documentation

◆ charAsString

bool tfel::utilities::CxxTokenizerOptions::charAsString = false

if true, one consider that single quote can be used to define a string

Note
this only has effect if treatStrings is true

◆ joinCxxTwoCharactersSeparators

bool tfel::utilities::CxxTokenizerOptions::joinCxxTwoCharactersSeparators = true

In C and C++, two separator characters can be associated to create a new separator: ->, &=. If this flag is true, these separators will be grouped in a single token.


The documentation for this struct was generated from the following file: