#include <ast.hpp>
Public Field Index: | |
AST * | Argument |
The argument node. | |
String | Operator |
The operator symbol. | |
Public Field Index: inherited from AST | |
Types | NodeType |
Type of derived this AST node. | |
integer | Position |
Position in original expression string. | |
Public Method Index: | |
ASTUnaryOp (const String &op, AST *argument, integer position) | |
virtual | ~ASTUnaryOp () override |
Virtual destructor. | |
virtual void | Assemble (Program &program, MonoAllocator &allocator, AString &normalized) override |
virtual AST * | Optimize (Normalization normalization) override |
Public Method Index: inherited from AST | |
AST ()=delete | |
Deleted default constructor. | |
AST (Types type, integer position) | |
virtual | ~AST () |
Virtual destructor. | |
Additional Inherited Members | |
Public Type Index: inherited from AST | |
enum class | Types { Literal , Identifier , Function , UnaryOp , BinaryOp , TernaryOp } |
The type of node. More... | |
|
inlineexplicit |
|
inlineoverridevirtual |
|
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 AST.
Definition at line 277 of file ast.cpp.
|
overridevirtual |