|
| void | set_language_options (const optionst &options, message_handlert &message_handler) override |
| | Sets language specific options.
|
| |
| bool | parse (std::istream &instream, const std::string &path, message_handlert &message_handler) override |
| | Parses input given by instream and saves this result to this instance's parse tree.
|
| |
| bool | generate_support_functions (symbol_table_baset &symbol_table, message_handlert &) override |
| | Currently unused.
|
| |
| bool | typecheck (symbol_table_baset &symbol_table, const std::string &module, message_handlert &message_handler, const bool keep_file_local) override |
| | Converts the current parse tree into a symbol table.
|
| |
| bool | typecheck (symbol_table_baset &symbol_table, const std::string &module, message_handlert &) override |
| |
| bool | can_keep_file_local () override |
| | Is it possible to call three-argument typecheck() on this object?
|
| |
| void | show_parse (std::ostream &out, message_handlert &) override |
| | Prints the parse tree to the given output stream.
|
| |
| | ~statement_list_languaget () override |
| |
| | statement_list_languaget () |
| |
| bool | from_expr (const exprt &expr, std::string &code, const namespacet &ns) override |
| | Formats the given expression in a language-specific way.
|
| |
| bool | from_type (const typet &type, std::string &code, const namespacet &ns) override |
| | Formats the given type in a language-specific way.
|
| |
| bool | type_to_name (const typet &type, std::string &name, const namespacet &ns) override |
| | Encodes the given type in a language-specific way.
|
| |
| bool | to_expr (const std::string &code, const std::string &module, exprt &expr, const namespacet &ns, message_handlert &message_handler) override |
| | Parses the given string into an expression.
|
| |
| std::unique_ptr< languaget > | new_language () override |
| |
| std::string | id () const override |
| |
| std::string | description () const override |
| |
| std::set< std::string > | extensions () const override |
| |
| void | modules_provided (std::set< std::string > &modules) override |
| |
| virtual void | set_language_options (const optionst &, message_handlert &) |
| | Set language-specific options.
|
| |
| virtual bool | preprocess (std::istream &instream, const std::string &path, std::ostream &outstream, message_handlert &) |
| |
| virtual bool | parse (std::istream &instream, const std::string &path, message_handlert &message_handler)=0 |
| |
| virtual bool | generate_support_functions (symbol_table_baset &symbol_table, message_handlert &message_handler)=0 |
| | Create language-specific support functions, such as __CPROVER_start, __CPROVER_initialize and language-specific library functions.
|
| |
| virtual void | dependencies (const std::string &module, std::set< std::string > &modules) |
| |
| virtual void | modules_provided (std::set< std::string > &modules) |
| |
| virtual void | methods_provided (std::unordered_set< irep_idt > &methods) const |
| | Should fill methods with the symbol identifiers of all methods this languaget can provide a body for, but doesn't populate that body in languaget::typecheck (i.e.
|
| |
| virtual void | convert_lazy_method (const irep_idt &function_id, symbol_table_baset &symbol_table, message_handlert &message_handler) |
| | Requests this languaget should populate the body of method function_id in symbol_table.
|
| |
| virtual bool | final (symbol_table_baset &symbol_table) |
| | Final adjustments, e.g.
|
| |
| virtual bool | interfaces (symbol_table_baset &symbol_table, message_handlert &message_handler) |
| |
| virtual bool | typecheck (symbol_table_baset &symbol_table, const std::string &module, message_handlert &message_handler)=0 |
| |
| virtual bool | can_keep_file_local () |
| | Is it possible to call three-argument typecheck() on this object?
|
| |
| virtual bool | typecheck (symbol_table_baset &symbol_table, const std::string &module, message_handlert &message_handler, const bool keep_file_local) |
| | typecheck without removing specified entries from the symbol table
|
| |
| virtual std::string | id () const =0 |
| |
| virtual std::string | description () const =0 |
| |
| virtual std::set< std::string > | extensions () const =0 |
| |
| virtual void | show_parse (std::ostream &out, message_handlert &message_handler)=0 |
| |
| virtual bool | from_expr (const exprt &expr, std::string &code, const namespacet &ns) |
| | Formats the given expression in a language-specific way.
|
| |
| virtual bool | from_type (const typet &type, std::string &code, const namespacet &ns) |
| | Formats the given type in a language-specific way.
|
| |
| virtual bool | type_to_name (const typet &type, std::string &name, const namespacet &ns) |
| | Encodes the given type in a language-specific way.
|
| |
| virtual bool | to_expr (const std::string &code, const std::string &module, exprt &expr, const namespacet &ns, message_handlert &message_handler)=0 |
| | Parses the given string into an expression.
|
| |
| virtual std::unique_ptr< languaget > | new_language ()=0 |
| |
| | languaget () |
| |
| virtual | ~languaget () |
| |
Implements the language interface for the Statement List language.
Includes functions for parsing input streams and for converting the resulting parse tree into a symbol table.
Definition at line 23 of file statement_list_language.h.