Go to the documentation of this file.
11 #ifndef CPROVER_JSON_SYMTAB_LANGUAGE_JSON_SYMTAB_LANGUAGE_H
12 #define CPROVER_JSON_SYMTAB_LANGUAGE_JSON_SYMTAB_LANGUAGE_H
27 bool parse(std::istream &instream,
const std::string &path)
override;
41 std::string
id()
const override
47 return "JSON symbol table";
52 return {
"json_symtab"};
57 return util_make_unique<json_symtab_languaget>();
63 bool entry_point_exists =
66 return !entry_point_exists;
77 return util_make_unique<json_symtab_languaget>();
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...
std::string description() const override
Base class for all expressions.
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
std::unique_ptr< languaget > new_json_symtab_language()
bool parse(std::istream &instream, const std::string &path) override
Parse a goto program in json form.
bool generate_support_functions(symbol_tablet &symbol_table) override
Create language-specific support functions, such as __CPROVER_start, __CPROVER_initialize and languag...
std::string id() const override
std::set< std::string > extensions() const override
const symbolst & symbols
Read-only field, used to look up symbols given their names.
bool typecheck(symbol_tablet &symbol_table, const std::string &module) override
Typecheck a goto program in json form.
bool to_expr(const std::string &, const std::string &, exprt &, const namespacet &) override
Parses the given string into an expression.
static irep_idt entry_point()
Get the identifier of the entry point to a goto model.
std::unique_ptr< languaget > new_language() override
~json_symtab_languaget() override=default