Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
expand.cc
Go to the documentation of this file.
1 #include <vcsn/dyn/ratexp.hh>
2 #include <vcsn/algos/expand.hh>
3 #include <vcsn/dyn/algos.hh>
5 
6 namespace vcsn
7 {
8  namespace dyn
9  {
10  /*--------------.
11  | expand(exp). |
12  `--------------*/
13  REGISTER_DEFINE(expand);
14 
15  ratexp
16  expand(const ratexp& e)
17  {
18  return detail::expand_registry().call(e);
19  }
20  }
21 }
std::shared_ptr< detail::ratexp_base > ratexp
Definition: fwd.hh:64
ratexp expand(const ratexp &e)
Distribute product over addition recursively under the starred subexpressions and group the equal mon...
Definition: expand.cc:16