PandA-2024.02
|
#include <c_initialization_parser.hpp>
Public Member Functions | |
CInitializationParser (const ParameterConstRef parameters) | |
Constructor. More... | |
void | Parse (CInitializationParserFunctorRef c_initialization_parser_functor, const std::string &initialization_string) const |
Parse a string to generate the corresponding memory initialization. More... | |
Private Member Functions | |
void | YYParse (const CInitializationParserFunctorRef c_initialization_parser_functor, const CInitializationFlexLexerRef lexer) const |
Wrapper to yyparse. More... | |
Private Attributes | |
const ParameterConstRef | parameters |
The set of input parameters. More... | |
int | debug_level |
The debug level. More... | |
Definition at line 53 of file c_initialization_parser.hpp.
CInitializationParser::CInitializationParser | ( | const ParameterConstRef | parameters | ) |
Constructor.
utility include
parameters | is the set of input parameters |
Definition at line 60 of file c_initialization_parser.cpp.
References debug_level, GET_CLASS, and parameters.
void CInitializationParser::Parse | ( | CInitializationParserFunctorRef | c_initialization_parser_functor, |
const std::string & | initialization_string | ||
) | const |
Parse a string to generate the corresponding memory initialization.
c_initialization_parser_functor | is the functor used during parsing |
initialization_string | is the C initialization string of a variable |
Definition at line 65 of file c_initialization_parser.cpp.
References DATA_SIZE_THRESHOLD, debug_level, DEBUG_LEVEL_VERY_PEDANTIC, fileIO_istream_open_from_string(), refcount< T >::get(), INDENT_DBG_MEX, parameters, and YYParse().
|
private |
Wrapper to yyparse.
c_initialization_parser_functor | is the functor used during the parsing |
lexer | is the lexer used to process the initiation string |
Referenced by Parse().
|
private |
The debug level.
Definition at line 60 of file c_initialization_parser.hpp.
Referenced by CInitializationParser(), and Parse().
|
private |
The set of input parameters.
Definition at line 57 of file c_initialization_parser.hpp.
Referenced by CInitializationParser(), and Parse().