44 void walk(
const std::string & fullpath,
const std::string & nodename, hit::Node * n)
override;
46 std::vector<hit::ErrorMessage>
errors;
112 void walk(
const std::string & fullpath,
const std::string & nodepath, hit::Node * n);
122 bool isGlobal(
const hit::Node & node)
const;
166 void walkRaw(std::string fullpath, std::string nodepath, hit::Node * n);
Specialized factory for generic Action System objects.
Storage for action instances.
An inteface for the _console for outputting to the Console object.
Generic factory class for build all sorts of objects.
Holds the syntax in a Json::Value tree.
Base class for MOOSE-based applications.
Parses MOOSE input using HIT/WASP.
std::optional< const hit::Node * > _global_params_node
The hit Node for the [GlobalParams] block, if any If set (could be null), it means we have searched f...
std::string getPrimaryFileName(bool stripLeadingPath=true) const
Return the primary (first) filename that was parsed.
void walkRaw(std::string fullpath, std::string nodepath, hit::Node *n)
std::set< std::string > _extracted_vars
The set of all variables extracted from the input file.
void build()
Parse an input file (or text string if provided) consisting of hit syntax and setup objects in the MO...
void buildJsonSyntaxTree(JsonSyntaxTree &tree) const
Use MOOSE Factories to construct a parameter tree for documentation or echoing input.
std::map< std::string, std::string > _deprecated_params
Deprecation warnings (object type/param name) -> (message)
ActionWarehouse & _action_wh
Action warehouse that will be filled by actions.
void walk(const std::string &fullpath, const std::string &nodepath, hit::Node *n)
Syntax & _syntax
Reference to an object that defines input file syntax.
Factory & _factory
The Factory associated with that MooseApp.
ActionFactory & _action_factory
The Factory that builds actions.
std::vector< hit::ErrorMessage > _errors
The errors accumulated during the walk.
void errorCheck(const libMesh::Parallel::Communicator &comm, bool warn_unused, bool err_unused)
const hit::Node * queryGlobalParamsNode() const
Get the [GlobalParams] section node if it exists.
std::vector< std::string > _secs_need_first
The sections that we need to execute first (read during the final walk)
MooseApp & _app
The MooseApp this Parser is part of.
bool isGlobal(const hit::Node &node) const
Parser & _parser
The front parser.
std::vector< std::string > listValidParams(std::string §ion_name)
void initSyntaxFormatter(SyntaxFormatterType type, bool dump_mode)
Creates a syntax formatter for printing.
hit::Node & _root
The root node from the Parser.
void buildFullTree(const std::string &search_string)
Use MOOSE Factories to construct a full parse tree for documentation or echoing input.
std::unique_ptr< SyntaxTree > _syntax_formatter
Object for holding the syntax parse tree.
void extractParams(const hit::Node *const section_node, InputParameters &p)
Attempt to extract values from input starting with the section in input in section_node based on the ...
static InputParameters validParams()
Parameters that are processed directly by the Parser and are valid anywhere in the input.
std::vector< hit::ErrorMessage > errors
std::set< std::string > _used
UnusedWalker(std::set< std::string > used, Builder &p)
void walk(const std::string &fullpath, const std::string &nodename, hit::Node *n) override
Class for parsing input files.
Holding syntax for parsing input files.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...