|
MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
|
AST node for a function call expression. More...
#include <ast.hpp>

Public Member Functions | |
| FuncCallNode (const std::string &funcName, std::vector< std::unique_ptr< ASTNode > > args) | |
| void | accept (ASTVisitor &visitor) override |
| Accept an ASTVisitor (double-dispatch). | |
| std::string | toString () const override |
| Return a human-readable description of this node. | |
| Public Member Functions inherited from pascal::ASTNode | |
| virtual | ~ASTNode ()=default |
| virtual void | print (std::ostream &out, int indent=0) const |
| Pretty-print this node to a stream with indentation. | |
| void | setLineNumber (int line) |
| Set the originating source line number. | |
| int | getLineNumber () const |
| Get the originating source line number. | |
Public Attributes | |
| std::string | name |
| function name | |
| std::vector< std::unique_ptr< ASTNode > > | arguments |
| actual arguments | |
|
inline |
|
overridevirtual |
Accept an ASTVisitor (double-dispatch).
Implements pascal::ASTNode.
Definition at line 231 of file ast.cpp.
References pascal::ASTVisitor::visit().
|
overridevirtual |
Return a human-readable description of this node.
Implements pascal::ASTNode.
| std::vector<std::unique_ptr<ASTNode> > pascal::FuncCallNode::arguments |
actual arguments
Definition at line 503 of file ast.hpp.
Referenced by FuncCallNode(), toString(), and pascal::CodeGenVisitor::visit().
| std::string pascal::FuncCallNode::name |
function name
Definition at line 502 of file ast.hpp.
Referenced by FuncCallNode(), toString(), and pascal::CodeGenVisitor::visit().