10 #include <vcsn/dyn/fwd.hh>
19 virtual void accept(context_visitor &v) const \
31 virtual bool has_one()
const {
return false; }
37 context(std::shared_ptr<ast_node> ls, std::shared_ptr<ast_node> ws)
61 using value_t = std::vector<std::shared_ptr<ast_node>>;
75 for (
auto s : get_sets())
88 using value_t = std::vector<std::shared_ptr<ast_node>>;
102 for (
auto s : get_sets())
129 std::shared_ptr<ast_node>
ls_;
148 genset(
const std::string& letter_type,
const std::string& gens)
149 : letter_type_(letter_type)
156 const
std::
string& letter_type()
const
181 std::shared_ptr<const ast_node>
genset()
const
187 virtual
bool has_one()
const {
return false; }
190 const std::shared_ptr<const ast_node>
gs_;
197 wordset(
const std::shared_ptr<const ast_node>& gs)
202 std::shared_ptr<const ast_node>
genset()
const
211 const std::shared_ptr<const ast_node>
gs_;
257 std::shared_ptr<expressionset>
rs_;
297 using node_t = std::shared_ptr<ast_node>;
306 , children_(children)
346 std::shared_ptr<ast_node> child_;
rat::identities get_identities() const
const std::string letter_type_
const std::string & get_type() const
static identities ids(const driver &d)
Get the identities of the driver.
const value_t get_sets() const
const value_t get_sets() const
std::vector< std::shared_ptr< ast_node >> value_t
const std::string & get_type() const
polynomialset(std::shared_ptr< ast_node > child)
const nodes_t & get_content() const
genset(const std::string &letter_type, const std::string &gens)
const std::shared_ptr< context > get_context() const
tuple(const value_t &sets)
tupleset(const value_t &sets)
automaton(const std::string &type, const nodes_t &children)
std::vector< std::shared_ptr< ast_node >> value_t
std::shared_ptr< ast_node > node_t
letterset(const std::shared_ptr< const ast_node > &gs)
const std::shared_ptr< ast_node > get_labelset() const
nullableset(std::shared_ptr< ast_node > ls)
const std::shared_ptr< ast_node > & get_content() const
const std::string generators_
expansionset(std::shared_ptr< expressionset > rs)
std::shared_ptr< ast_node > ls_
other(const std::string &type)
expressionset(std::shared_ptr< context > ctx, rat::identities ids)
virtual void accept(context_visitor &v) const =0
const std::shared_ptr< const ast_node > gs_
std::shared_ptr< ast_node > ls_
virtual ~ast_node()=default
rat::identities identities_
std::shared_ptr< expressionset > rs_
An expressionset can implement several different sets of identities on expressions.
automaton(const std::string &type, const node_t &child)
std::shared_ptr< context > ctx_
weightset(const std::string &type)
const std::string & generators() const
The generators.
const std::shared_ptr< expressionset > get_expressionset() const
std::shared_ptr< ast_node > ws_
const std::shared_ptr< const ast_node > gs_
const std::shared_ptr< ast_node > get_labelset() const
const std::shared_ptr< ast_node > get_weightset() const
Represents the "alphabets", or "generator set".
context(std::shared_ptr< ast_node > ls, std::shared_ptr< ast_node > ws)
wordset(const std::shared_ptr< const ast_node > &gs)
std::shared_ptr< const ast_node > genset() const
The generator set.
std::shared_ptr< const ast_node > genset() const
The generator set.
virtual bool has_one() const
const std::string & get_type() const
std::vector< node_t > nodes_t