Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Types | Public Member Functions
cli::Expression Class Referenceabstract

#include <Expression.h>

Inheritance diagram for cli::Expression:
[legend]

Public Types

enum class  Operation {
  LOGICAL_OR , LOGICAL_AND , COMPARE_EQUALITY , COMPARE_INEQUALITY ,
  COMPARE_LESS_OR_EQUAL , COMPARE_LESS , COMPARE_MORE_OR_EQUAL , COMPARE_MORE ,
  ADD , SUB , MUL , MOD ,
  DIV , NOT
}
 

Public Member Functions

virtual ~Expression () noexcept=default
 
virtual std::shared_ptr< abstraction::ValuetranslateAndEval (Environment &environment) const =0
 

Member Enumeration Documentation

◆ Operation

enum class cli::Expression::Operation
strong
Enumerator
LOGICAL_OR 
LOGICAL_AND 
COMPARE_EQUALITY 
COMPARE_INEQUALITY 
COMPARE_LESS_OR_EQUAL 
COMPARE_LESS 
COMPARE_MORE_OR_EQUAL 
COMPARE_MORE 
ADD 
SUB 
MUL 
MOD 
DIV 
NOT 

Constructor & Destructor Documentation

◆ ~Expression()

virtual cli::Expression::~Expression ( )
virtualdefaultnoexcept

Member Function Documentation

◆ translateAndEval()

virtual std::shared_ptr< abstraction::Value > cli::Expression::translateAndEval ( Environment environment) const
pure virtual

The documentation for this class was generated from the following file: