Abstract syntax tree node representing a function call.
Definition at line 143 of file ast_impl.inl.
Public Field Index: | |
| List< MonoAllocator, AST * > | Arguments |
| The argument nodes. | |
| String | Name |
| The function name as parsed. | |
Public Field Index: inherited from alib::expressions::detail::AST | |
| integer | Position |
| Position in the original expression string. | |
Public Field Index: inherited from alib::expressions::detail::ASTBase | |
| Types | NodeType |
| Type of derived this AST node. | |
Public Method Index: | |
| ASTFunction (const String name, integer position, MonoAllocator &pAllocator) | |
| virtual | ~ASTFunction () override |
| Virtual destructor. | |
| virtual void | Assemble (Program &program, MonoAllocator &allocator, AString &normalized) override |
| virtual AST * | Optimize (Normalization normalization) override |
Public Method Index: inherited from alib::expressions::detail::AST | |
| AST ()=delete | |
| Deleted default constructor. | |
| AST (Types type, integer position) | |
| virtual | ~AST () |
| Virtual destructor. | |
Public Method Index: inherited from alib::expressions::detail::ASTBase | |
| ASTBase (Types type) | |
Additional Inherited Members | |
Public Type Index: inherited from alib::expressions::detail::ASTBase | |
| enum class | Types { Literal , Identifier , Function , UnaryOp , BinaryOp , TernaryOp } |
| The type of node. More... | |
| List<MonoAllocator, AST*> alib::expressions::detail::ASTFunction::Arguments |
The argument nodes.
Definition at line 146 of file ast_impl.inl.
| String alib::expressions::detail::ASTFunction::Name |
The function name as parsed.
Definition at line 145 of file ast_impl.inl.
|
inlineexplicit |
Constructor providing name, but not arguments, yet.
| name | The name of the function |
| position | The index of this AST in the expression string. |
| pAllocator | Allocator used to clone the given name and for storing arguments. |
Definition at line 153 of file ast_impl.inl.
|
inlineoverridevirtual |
Virtual destructor.
Definition at line 160 of file ast_impl.inl.
|
overridevirtual |
Implements abstract method.
| program | The program to be compiled. | |
| allocator | An allocator usable for temporary objects. | |
| [out] | normalized | The normalized string, built during recursive compilation of the AST. |
Implements alib::expressions::detail::AST.
Definition at line 188 of file ast.cpp.
|
overridevirtual |
Implements abstract method.
| normalization | The compiler flags denoting the normalization settings. |
Implements alib::expressions::detail::AST.
Definition at line 62 of file ast.cpp.