Piethon  1.0
A Python-like interpreter using flex and bison.
symbolTable.h
Go to the documentation of this file.
1 #ifndef SYMBOLTABLE_H
2 #define SYMBOLTABLE_H
3 
4 #include <map>
5 #include <string>
6 #include "number.h"
7 
8 using std::map;
9 using std::string;
10 
11 class SymbolTable {
12 public:
13  Number operator[](const string&) const;
14  Number& operator[](const string&);
15 
16 private:
17  map<string,Number> symTable;
18 };
19 
20 #endif
Number operator[](const string &) const
Definition: symbolTable.cpp:4
Definition: number.h:21