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