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