26 const std::string &path)
48 catch(
const std::string &str)
50 error() <<
"typecheck: " << str <<
eom;
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
bool typecheck(symbol_table_baset &symbol_table, const std::string &module) override
Typecheck a goto program in json form.
void show_parse(std::ostream &out) override
Output the result of the parsed json file to the output stream passed as a parameter to this function...
bool parse(std::istream &instream, const std::string &path) override
Parse a goto program in json form.
void output(std::ostream &out) const
message_handlert & get_message_handler()
The symbol table base class interface.
bool parse_json(std::istream &in, const std::string &filename, message_handlert &message_handler, jsont &dest)
void symbol_table_from_json(const jsont &in, symbol_table_baset &symbol_table)
bool linking(symbol_table_baset &dest_symbol_table, const symbol_table_baset &new_symbol_table, message_handlert &message_handler)
Merges the symbol table new_symbol_table into dest_symbol_table, renaming symbols from new_symbol_tab...