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

#include <expression.h>

Inheritance diagram for Identifier:
Inheritance graph
Collaboration diagram for Identifier:
Collaboration graph

Public Member Functions

 Identifier (const string &n)
 
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 38 of file expression.h.

Constructor & Destructor Documentation

◆ Identifier()

Identifier::Identifier ( const string &  n)
inline

Definition at line 40 of file expression.h.

40 : name(n) { }

Member Function Documentation

◆ eval()

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

Implements Expression.

Definition at line 10 of file expression.cpp.

10  {
11  return st[name];
12 }

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