Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
de-bruijn.cc
Go to the documentation of this file.
2 #include <vcsn/dyn/algos.hh>
4 
5 namespace vcsn
6 {
7  namespace dyn
8  {
9 
10  REGISTER_DEFINE(de_bruijn);
11 
12  automaton
13  de_bruijn(const context& ctx, unsigned n)
14  {
15  return detail::de_bruijn_registry().call(ctx, n);
16  }
17  }
18 }
std::shared_ptr< detail::automaton_base > automaton
Definition: automaton.hh:71
automaton de_bruijn(const context &ctx, unsigned n)
A simple NFA for (a+b)*a(a+b)^n.
Definition: de-bruijn.cc:13
std::shared_ptr< const detail::context_base > context
Definition: context.hh:71