An expression in the rule language. More...
#include <RuleBasedProgramTree.h>
Public Member Functions | |
virtual | ~Expression ()=default |
Virtual default constructor. | |
virtual Type | getType () const =0 |
virtual void | generateCode (CodeGenerationContext &context, RuleVM::Program &program) const =0 |
Generates code for evaluating this expression at runtime. | |
An expression in the rule language.
|
pure virtual |
Generates code for evaluating this expression at runtime.
Value is put on top of the stack. May consume part of the stack.
context | The context to generate the code in. |
program | The program to append the code to. |
Implemented in autopas::RuleSyntax::Literal, autopas::RuleSyntax::Variable, autopas::RuleSyntax::UnaryOperator, and autopas::RuleSyntax::BinaryOperator.
|
pure virtual |
Implemented in autopas::RuleSyntax::Literal, autopas::RuleSyntax::Variable, autopas::RuleSyntax::UnaryOperator, and autopas::RuleSyntax::BinaryOperator.