Piethon
1.0
A Python-like interpreter using flex and bison.
program.h
Go to the documentation of this file.
1
#ifndef PROGRAM_H
2
#define PROGRAM_H
3
4
#include "
symbolTable.h
"
5
#include "
functionTable.h
"
6
7
class
StatementList
;
8
9
class
Program
{
10
public
:
11
Program
(
StatementList
* stmtList) : statementList(stmtList) { }
12
~Program
();
13
int
eval
();
14
15
private
:
16
StatementList
* statementList;
17
SymbolTable
st;
18
FunctionTable
ft;
19
};
20
21
#endif
Program
Definition:
program.h:9
Program::Program
Program(StatementList *stmtList)
Definition:
program.h:11
SymbolTable
Definition:
symbolTable.h:11
Program::eval
int eval()
Definition:
program.cpp:15
StatementList
Definition:
statement.h:45
functionTable.h
FunctionTable
Definition:
functionTable.h:12
symbolTable.h
Program::~Program
~Program()
Definition:
program.cpp:11
Generated on Tue Jan 19 2021 23:43:11 for Piethon by
1.8.13