12#ifndef MCRL2_DATA_DETAIL_PARSE_SUBSTITUTION_H
13#define MCRL2_DATA_DETAIL_PARSE_SUBSTITUTION_H
29template <
typename MutableSubstitution>
34 std::cout <<
"text = " << text << std::endl;
36 for (
const std::string& substitution: substitutions)
39 if (words.size() != 2)
Parser for data specifications.
static RewriterCompilingJitty::substitution_type & sigma(RewriterCompilingJitty *this_rewriter)
void parse_substitution(std::string text, MutableSubstitution &sigma, const data_specification &data_spec=data::data_specification())
Parses a string of the form "b: Bool := true, n: Nat := 0", and adds the substitutions to the substit...
data_expression parse_data_expression(std::istream &in, const VariableContainer &variables, const data_specification &dataspec=detail::default_specification(), bool type_check=true, bool translate_user_notation=true, bool normalize_sorts=true)
Parses and type checks a data expression.
variable parse_variable(const std::string &text, const data_specification &data_spec=detail::default_specification())
Parses and type checks a data variable declaration.
std::string regex_replace(const std::string &src, const std::string &dest, const std::string &text)
Regular expression replacement in a string.
std::vector< std::string > regex_split(const std::string &text, const std::string &sep)
Split a string using a regular expression separator.
std::vector< std::string > split(const std::string &line, const std::string &separators)
Split the text.
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...