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

#include <expression.h>

Inheritance diagram for Constant:
Inheritance graph
Collaboration diagram for Constant:
Collaboration graph

Public Member Functions

 Constant (const Number &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 27 of file expression.h.

Constructor & Destructor Documentation

◆ Constant()

Constant::Constant ( const Number n)
inline

Definition at line 29 of file expression.h.

29 : num(n) { }

Member Function Documentation

◆ eval()

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

Implements Expression.

Definition at line 6 of file expression.cpp.

6  {
7  return num;
8 }

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