#ifndef LOOKUP_H #define LOOKUP_H #include "types.h" #include "Symbol.h" #include /* Lookup id in the symbol table and return it. * If symbol can't be found, a new symbol is created with symbol type * default_type and added to the symbol table and returned. */ Symbol *lookup(const std::string& id, SymbolType default_type); /* Checks if the id already exists and gives an error if it does */ void check_id(const std::string& id); #endif /* LOOKUP_H */