#include <ast.hpp>
Public Type Index: | |
enum class | NFHint { NONE , Scientific , Hexadecimal , Octal , Binary } |
Public Type Index: inherited from AST | |
enum class | Types { Literal , Identifier , Function , UnaryOp , BinaryOp , TernaryOp } |
The type of node. More... | |
Public Field Index: | |
NFHint | Format |
Format hints. | |
Box | Value |
The value of the literal. | |
Public Field Index: inherited from AST | |
Types | NodeType |
Type of derived this AST node. | |
integer | Position |
Position in original expression string. | |
Public Method Index: | |
ASTLiteral (const String &string, integer position) | |
ASTLiteral (double value, integer position, NFHint hint=NFHint::NONE) | |
ASTLiteral (integer value, integer position, NFHint hint=NFHint::NONE) | |
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. | |
|
strong |
This is a list of flags that store information obbout the format of the literal given in the expression string. This information is used with the generation of a normalized version of the literal.
|
inline |
|
inline |
|
inline |
|
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 114 of file ast.cpp.
|
overridevirtual |