12#ifndef MCRL2_LPS_PARSE_H
13#define MCRL2_LPS_PARSE_H
72 std::stringstream ma_stream(text);
85 std::stringstream ma_stream(text);
111 const std::string& spec_string,
114 std::istringstream in(spec_string);
154 std::istringstream stream(text);
158template <
typename Specification>
192 result = visitor.
convert(pspec);
196template <
typename Specification>
197void parse_lps(
const std::string& text, Specification& result)
199 std::istringstream stream(text);
size_type size() const
Returns the size of the term_list.
const Term & front() const
Returns the first element of the list.
Read-only singly linked list of action rename rules.
\brief A timed multi-action
const process::action_list & actions() const
Linear process specification.
Linear process specification.
Process specification consisting of a data specification, action labels, a sequence of process equati...
\brief An untyped multi action or data application
Standard exception class for reporting runtime errors.
add your file description here.
add your file description here.
static data_specification const & default_specification()
void complete_action_rename_specification(action_rename_specification &x, const lps::stochastic_specification &spec)
process::untyped_multi_action parse_multi_action_new(const std::string &text)
multi_action complete_multi_action(process::untyped_multi_action &x, multi_action_type_checker &typechecker, const data::data_specification &data_spec=data::detail::default_specification())
action_rename_specification parse_action_rename_specification_new(const std::string &text)
void parse_lps(std::istream &, Specification &)
process::action parse_action(const std::string &text, const process::action_label_list &action_decls, const data::data_specification &data_spec=data::detail::default_specification())
Parses an action from a string.
void complete_data_specification(specification &spec)
Adds all sorts that appear in the process of l to the data specification of l.
action_rename_specification parse_action_rename_specification(std::istream &in, const lps::stochastic_specification &spec)
Parses a process specification from an input stream.
multi_action parse_multi_action(std::stringstream &in, const process::action_label_list &action_decls, const data::data_specification &data_spec=data::detail::default_specification())
Parses a multi_action from an input stream.
void parse_lps< specification >(std::istream &from, specification &result)
void parse_lps< stochastic_specification >(std::istream &from, stochastic_specification &result)
Parses a stochastic linear process specification from an input stream.
specification parse_linear_process_specification(std::istream &spec_stream)
Parses a linear process specification from an input stream.
bool is_linear(const process_specification &p, bool verbose=false)
Returns true if the process specification is linear.
atermpp::term_list< action_label > action_label_list
\brief list of action_labels
process_specification parse_process_specification(std::istream &in)
Parses a process specification from an input stream.
std::string read_text(const std::string &filename, bool warn=false)
Read text from a file.
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
Parse function for process specifications.
Converts a process expression into linear process format. Use the convert member functions for this.
void convert(const process_equation &)
Returns true if the process equation e is linear.
Converts a process expression into linear process format. Use the convert member functions for this.
void convert(const process_equation &)
Returns true if the process equation e is linear.