15 if (macro->constList().size() == 2)
Executor for Symbol Macros.
const Node * findNearestMacro(const std::string &name) const
Find the nearest macro matching a giving name.
A node of an Abstract Syntax Tree for ArkScript.
NodeType nodeType() const noexcept
Return the node type.
const std::string & string() const noexcept
Return the string held by the value (if the node type allows it)
const std::vector< Node > & constList() const noexcept
Return the list of sub-nodes held by the node.
bool applyMacro(Node &node) override
Executes macros in the Node if the Executor can handle it.
bool canHandle(Node &node) override
Checks if the executor can apply a macro on the passed Node.