27 void context(
const std::string& ctx);
49 void error(
const location& l,
const std::string& m);
52 void invalid(
const location& l,
const std::string& s);
90 std::vector<unsigned> tapes_ = {0};
92 std::vector<dyn::context> tape_ctx_ = {};
value_impl< detail::expression_tag > expression
Template-less root for contexts.
label make_label(const context &ctx, const std::string &s, const std::string &format="default")
Build a label from a string.
expression make_expression(const context &ctx, const std::string &s, identities ids={}, const std::string &format="default")
Read an expression from a stream.
dyn::context ctx_
The context used to read the expression.
An expressionset can implement several different sets of identities on expressions.
weight make_weight(const context &ctx, const std::string &s)
Build a weight from a string.
State and public interface for rational expression parsing.
std::unique_ptr< yyFlexLexer > scanner_
The scanner.
std::string errors
The error messages.
std::set< std::pair< std::string, std::string > > class_t
A set of label ranges.
location location_
The inital location.
static identities ids(const driver &d)
Get the identities of the driver.
::vcsn::rat::identities identities
Sets of identities on expressions.
static dyn::context ctx(const driver &d)
Get the context of the driver.
dyn::expression result_
The parsed expression.
rat::identities ids_
The identities to apply.
Define the vcsn::rat::parser class.