Piethon  1.0
A Python-like interpreter using flex and bison.
Public Member Functions | List of all members
FunctionCallExp Class Reference

#include <expression.h>

Inheritance diagram for FunctionCallExp:
Inheritance graph
Collaboration diagram for FunctionCallExp:
Collaboration graph

Public Member Functions

 FunctionCallExp (string n, ExpressionList *aList)
 
 ~FunctionCallExp ()
 
virtual Number eval (const SymbolTable &, const FunctionTable &) const
 
- Public Member Functions inherited from Expression
virtual ~Expression ()
 

Additional Inherited Members

- Protected Member Functions inherited from Expression
 Expression ()
 

Detailed Description

Definition at line 61 of file expression.h.

Constructor & Destructor Documentation

◆ FunctionCallExp()

FunctionCallExp::FunctionCallExp ( string  n,
ExpressionList aList 
)
inline

Definition at line 63 of file expression.h.

63 : name(n), argList(aList) { }

◆ ~FunctionCallExp()

FunctionCallExp::~FunctionCallExp ( )

Definition at line 22 of file expression.cpp.

22  {
23  delete argList;
24 }

Member Function Documentation

◆ eval()

Number FunctionCallExp::eval ( const SymbolTable st,
const FunctionTable ft 
) const
virtual

Implements Expression.

Definition at line 26 of file expression.cpp.

26  {
27  return ft[name]->apply(st, ft, argList);
28 }

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