#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 } |
Public Field Index: | |
NFHint | Format |
The value of the literal. | |
Box | Value |
The value of the literal. | |
Public Field Index: inherited from AST | |
Types | NodeType |
integer | Position |
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 | |
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 |