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

#include <statement.h>

Inheritance diagram for FunctionCall:
Inheritance graph
Collaboration diagram for FunctionCall:
Collaboration graph

Public Member Functions

 FunctionCall (const string &n, ExpressionList *el)
 
 ~FunctionCall ()
 
void eval (SymbolTable &, FunctionTable &) const
 
- Public Member Functions inherited from Statement
virtual ~Statement ()
 
virtual int getLineNumber () const
 

Additional Inherited Members

- Protected Member Functions inherited from Statement
 Statement ()
 
 Statement (int i)
 
- Protected Attributes inherited from Statement
int lineNumber
 

Detailed Description

Definition at line 57 of file statement.h.

Constructor & Destructor Documentation

◆ FunctionCall()

FunctionCall::FunctionCall ( const string &  n,
ExpressionList el 
)
inline

Definition at line 59 of file statement.h.

59 : Statement(yylineno), name(n), expList(el) { }
Statement()
Definition: statement.h:26
int yylineno

◆ ~FunctionCall()

FunctionCall::~FunctionCall ( )

Definition at line 29 of file statement.cpp.

29  {
30  delete expList;
31 }

Member Function Documentation

◆ eval()

void FunctionCall::eval ( SymbolTable st,
FunctionTable ft 
) const
virtual

Implements Statement.

Definition at line 33 of file statement.cpp.

33  {
34  // semi-hack: create const FunctionTable to ensure only accessor
35  // operator[] is used - don't want to get a NULL function*
36  const FunctionTable cft(ft);
37 
38  cft[name]->apply(st, ft, expList);
39 }

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