Piethon  1.0
A Python-like interpreter using flex and bison.
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BinaryExpression Class Referenceabstract

#include <expression.h>

Inheritance diagram for BinaryExpression:
Inheritance graph
Collaboration diagram for BinaryExpression:
Collaboration graph

Public Member Functions

 ~BinaryExpression ()
 
virtual Number eval (const SymbolTable &, const FunctionTable &) const =0
 
- Public Member Functions inherited from Expression
virtual ~Expression ()
 

Protected Member Functions

 BinaryExpression (Expression *e1, Expression *e2)
 
- Protected Member Functions inherited from Expression
 Expression ()
 

Protected Attributes

Expressionop1
 
Expressionop2
 

Detailed Description

Definition at line 74 of file expression.h.

Constructor & Destructor Documentation

◆ ~BinaryExpression()

BinaryExpression::~BinaryExpression ( )

Definition at line 30 of file expression.cpp.

30  {
31  delete op1;
32  delete op2;
33 }
Expression * op2
Definition: expression.h:83
Expression * op1
Definition: expression.h:82

◆ BinaryExpression()

BinaryExpression::BinaryExpression ( Expression e1,
Expression e2 
)
inlineprotected

Definition at line 81 of file expression.h.

81 : op1(e1), op2(e2) { }
Expression * op2
Definition: expression.h:83
Expression * op1
Definition: expression.h:82

Member Function Documentation

◆ eval()

virtual Number BinaryExpression::eval ( const SymbolTable ,
const FunctionTable  
) const
pure virtual

Member Data Documentation

◆ op1

Expression* BinaryExpression::op1
protected

Definition at line 82 of file expression.h.

◆ op2

Expression* BinaryExpression::op2
protected

Definition at line 83 of file expression.h.


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