15 auto res = d.parse(is, l);
16 if (!d.errors.empty())
17 throw std::runtime_error(d.errors);
An expressionset can implement several different sets of identities on expressions.
std::shared_ptr< const detail::context_base > context
A dyn::context.
State and public interface for rational expression parsing.
std::istringstream is
The input stream: the specification to translate.
static dyn::context ctx(const driver &d)
Get the context of the driver.
std::shared_ptr< detail::expression_base > expression
dyn::expression read(const dyn::context &ctx, rat::identities ids, std::istream &is, const location &l)
The expression in stream is.
static identities ids(const driver &d)
Get the identities of the driver.