#include <ast.hpp>
Public Types | |
| enum | NFHint { NONE, Scientific, Hexadecimal, Octal, Binary } |
Public Types inherited from AST | |
| enum | Types { Literal, Identifier, Function, UnaryOp, BinaryOp, TernaryOp } |
Public Fields | |
| NFHint | Format |
| The value of the literal. | |
| Box | Value |
| The value of the literal. | |
Public Fields inherited from AST | |
| Types | NodeType |
| integer | Position |
Public Methods | |
| 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 Methods inherited from AST | |
| AST ()=delete | |
| AST (Types type, integer position) | |
| virtual | ~AST () |
|
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 126 of file ast.cpp.
|
overridevirtual |