23 var_inout.push_back(declaration);
29 var_output.push_back(declaration);
35 var_constant.push_back(declaration);
41 var_temp.push_back(declaration);
47 var_static.push_back(declaration);
52 networks.push_back(network);
71 instructions.push_back(inst);
76 const std::string &version)
77 : name(name), version(version)
83 const std::string &version)
114 const std::string &version,
115 const typet &return_type)
116 :
tia_modulet(name, version), return_type(return_type)
122 tokens.push_back(token);
Data structure for representing an arbitrary statement in a program.
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Intermediate representation of a parsed Statement List file before converting it into a goto program.
void clear()
Removes all functions and function blocks from the parse tree.
void add_function_block(function_blockt &block)
Adds a function block to the parse tree.
functionst functions
List of functions this parse tree includes.
function_blockst function_blocks
List of function blocks this parse tree includes.
std::vector< symbol_exprt > tags
List of tags that were included in the source.
void add_function(functiont &function)
Adds a function to the parse tree.
void swap(statement_list_parse_treet &other)
Swaps the contents of the parse tree with the parameter.
Expression to hold a symbol (variable)
The type of an expression, extends irept.
Statement List Language Parse Tree.
Structure for a simple function block in Statement List.
function_blockt(const irep_idt &name, const std::string &version)
Create the function block name with a specific version.
void add_var_static_entry(const var_declarationt &declaration)
Adds a variable declaration to the list of static variables.
Structure for a simple function in Statement List.
functiont(const irep_idt &name, const std::string &version, const typet &return_type)
Create the function name with a specific version and a return_value.
Represents a regular Statement List instruction which consists out of one or more codet tokens.
void add_token(const codet &token)
Adds a codet element to the list of all tokens.
Representation of a network in Siemens TIA.
void set_title(const std::string &value)
Sets the title of the network to a specific value.
void add_instruction(const instructiont &inst)
Adds an instruction to the network.
Base element of all modules in the Totally Integrated Automation (TIA) portal by Siemens.
void add_var_inout_entry(const var_declarationt &declaration)
Adds a variable declaration to the list of inout variables.
void add_var_constant_entry(const var_declarationt &declaration)
Adds a variable declaration to the list of constant variables.
var_declarationst var_input
Input variable declarations.
void add_var_input_entry(const var_declarationt &declaration)
Adds a variable declaration to the list of input variables.
tia_modulet(const irep_idt &name, const std::string &version)
Create the module name with a specific version.
void add_network(networkt &network)
Adds a network to the function.
void add_var_output_entry(const var_declarationt &declaration)
Adds a variable declaration to the list of output variables.
void add_var_temp_entry(const var_declarationt &declaration)
Adds a variable declaration to the list of temp variables.
Struct for a single variable declaration in Statement List.
var_declarationt(const symbol_exprt &symbol)
Creates a new.