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

#include <statement.h>

Inheritance diagram for Statement:
Inheritance graph
Collaboration diagram for Statement:
Collaboration graph

Public Member Functions

virtual ~Statement ()
 
virtual void eval (SymbolTable &, FunctionTable &) const =0
 
virtual int getLineNumber () const
 

Protected Member Functions

 Statement ()
 
 Statement (int i)
 

Protected Attributes

int lineNumber
 

Detailed Description

Definition at line 18 of file statement.h.

Constructor & Destructor Documentation

◆ ~Statement()

virtual Statement::~Statement ( )
inlinevirtual

Definition at line 20 of file statement.h.

20 {};

◆ Statement() [1/2]

Statement::Statement ( )
inlineprotected

Definition at line 26 of file statement.h.

26 : lineNumber(yylineno-1) { }
int yylineno
int lineNumber
Definition: statement.h:28

◆ Statement() [2/2]

Statement::Statement ( int  i)
inlineprotected

Definition at line 27 of file statement.h.

27 : lineNumber(i) { }
int lineNumber
Definition: statement.h:28

Member Function Documentation

◆ eval()

virtual void Statement::eval ( SymbolTable ,
FunctionTable  
) const
pure virtual

◆ getLineNumber()

int Statement::getLineNumber ( ) const
virtual

Definition at line 16 of file statement.cpp.

16  {
17  return lineNumber;
18 }
int lineNumber
Definition: statement.h:28

Member Data Documentation

◆ lineNumber

int Statement::lineNumber
protected

Definition at line 28 of file statement.h.


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