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
Definition: program.h:9
Program(StatementList *stmtList)
Definition: program.h:11
int eval()
Definition: program.cpp:15
~Program()
Definition: program.cpp:11