Abstract syntax tree node representing binary operators.
Definition at line 210 of file ast_impl.inl.
Public Field Index: | |
AST * | Lhs |
The left-hand-side expression node. | |
String | Operator |
The operator symbol. | |
AST * | Rhs |
![]() | |
integer | Position |
Position in the original expression string. | |
![]() | |
Types | NodeType |
Type of derived this AST node. | |
Public Method Index: | |
ASTBinaryOp (const String &op, AST *lhs, AST *rhs, integer position) | |
virtual | ~ASTBinaryOp () override |
Virtual destructor. | |
virtual void | Assemble (Program &program, MonoAllocator &allocator, AString &normalized) override |
virtual AST * | Optimize (Normalization normalization) override |
![]() | |
AST ()=delete | |
Deleted default constructor. | |
AST (Types type, integer position) | |
virtual | ~AST () |
Virtual destructor. | |
![]() | |
ASTBase (Types type) | |
Additional Inherited Members | |
![]() | |
enum class | Types { Literal , Identifier , Function , UnaryOp , BinaryOp , TernaryOp } |
The type of node. More... | |
AST* alib::expressions::detail::ASTBinaryOp::Lhs |
The left-hand-side expression node.
Definition at line 213 of file ast_impl.inl.
String alib::expressions::detail::ASTBinaryOp::Operator |
The operator symbol.
Definition at line 212 of file ast_impl.inl.
AST* alib::expressions::detail::ASTBinaryOp::Rhs |
The right-hand-side expression node.
Definition at line 214 of file ast_impl.inl.
|
inlineexplicit |
Constructor providing all fields.
lhs | Left-hand side node. |
rhs | Right-hand side node. |
op | The operator symbol. |
position | The index of this AST in the expression string. |
Definition at line 221 of file ast_impl.inl.
|
inlineoverridevirtual |
Virtual destructor.
Definition at line 227 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 400 of file ast.cpp.
|
overridevirtual |
Implements abstract method.
normalization | The compiler flags denoting the normalization settings. |
Implements alib::expressions::detail::AST.
Definition at line 69 of file ast.cpp.