- class inciter::InputDeckParser
- Control file parser for Inciter.
- FileParser(const std::string& filename) protected explicit
- const std::string m_filename
- Name of file to parse.
FileParser:: FileParser(const std::string& filename) explicit protected
|filename in||File to be parsed by the parser|
This constructor does basic tests in an attempt to determine if the file to be parsed exists and is in good shape and does associated error handling. This file stream is local, only used for error checking, and thus is not part of the object state here since the parser, inheriting from FileParser, e.g., walker::InputDeckParser, parses by completely outsourcing the parsing (to PEGTL), so there is no need to store the file stream handle here.
FileParser:: diagnostics(const tk:: Print& print,
const std::vector<std::string>& messages) protected
Echo errors accumulated during parsing.
|print in||Pretty printer|
|messages in||Vector of strings of errors and warnings|
< number of digits of line num
< original line parsed
< error or warning messages