11#ifndef CPROVER_JSON_SYMTAB_LANGUAGE_JSON_SYMTAB_LANGUAGE_H
12#define CPROVER_JSON_SYMTAB_LANGUAGE_JSON_SYMTAB_LANGUAGE_H
28 bool parse(std::istream &
instream,
const std::string &path)
override;
42 std::string
id()
const override
48 return "JSON symbol table";
53 return {
"json_symtab"};
64 bool entry_point_exists =
67 return !entry_point_exists;
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Base class for all expressions.
static irep_idt entry_point()
Get the identifier of the entry point to a goto model.
std::string id() const override
bool typecheck(symbol_table_baset &symbol_table, const std::string &module) override
Typecheck a goto program in json form.
bool generate_support_functions(symbol_table_baset &symbol_table) override
Create language-specific support functions, such as __CPROVER_start, __CPROVER_initialize and languag...
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...
~json_symtab_languaget() override=default
std::set< std::string > extensions() const override
std::unique_ptr< languaget > new_language() override
bool parse(std::istream &instream, const std::string &path) override
Parse a goto program in json form.
std::string description() const override
bool to_expr(const std::string &, const std::string &, exprt &, const namespacet &) override
Parses the given string into an expression.
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
The symbol table base class interface.
const symbolst & symbols
Read-only field, used to look up symbols given their names.
Goto Programs with Functions.
std::unique_ptr< languaget > new_json_symtab_language()
Abstract interface to support a programming language.