|
mstring
1.3.1
Generates C++ message functions and classes from localized message definitions
|
State shared by the parser of the main file and the parsers of the files it $IMPORTs — an imported file changes the same settings and adds to the same module, exactly as if it were inline.
More...
#include <MStringParser.hh>
Collaboration diagram for ParseContext:Public Member Functions | |
| ParseContext (Module &module) | |
| bool | failed () const |
| Whether a diagnostic other than a warning was recorded. More... | |
Public Attributes | |
| Module & | module |
| MessageSettings | settings |
Settings the next $MESSAGE copies. More... | |
| std::string | language { "C" } |
$LANGUAGE. More... | |
| std::string | charset { "UTF-8" } |
$CHARSET. More... | |
| std::vector< std::string > | importFolders |
-I folders. More... | |
| std::vector< std::string > | importStack |
| Canonical paths being parsed (recursion guard). More... | |
| std::vector< fedem::parser::ParseError > | diagnostics |
| bool | trace { false } |
State shared by the parser of the main file and the parsers of the files it $IMPORTs — an imported file changes the same settings and adds to the same module, exactly as if it were inline.
|
explicit |
| bool ParseContext::failed | ( | ) | const |
Whether a diagnostic other than a warning was recorded.
References diagnostics.
Referenced by MStringParser::parseFile(), and MStringParser::parseStream().
Here is the caller graph for this function:| Module& ParseContext::module |
| MessageSettings ParseContext::settings |
Settings the next $MESSAGE copies.
Referenced by MStringParser::directive(), MStringParser::errorDirective(), MStringParser::messageDirective(), and MStringParser::syslogDirective().
| std::string ParseContext::language { "C" } |
$LANGUAGE.
Referenced by MStringParser::languageDirective(), and MStringParser::messageDirective().
| std::string ParseContext::charset { "UTF-8" } |
$CHARSET.
Referenced by MStringParser::charsetDirective(), MStringParser::messageDirective(), and MStringParser::setHeaderLine().
| std::vector<std::string> ParseContext::importFolders |
-I folders.
Referenced by main(), and MStringParser::resolveImport().
| std::vector<std::string> ParseContext::importStack |
Canonical paths being parsed (recursion guard).
Referenced by MStringParser::parseFile().
| std::vector<fedem::parser::ParseError> ParseContext::diagnostics |
Referenced by CheckTranslations(), MStringParser::error(), failed(), main(), MStringParser::parseFile(), and MStringParser::warning().
| bool ParseContext::trace { false } |
Referenced by main(), and MStringParser::messageDirective().