In [1]:
import vcsn
b = vcsn.context('lal_char, z')
a = b.expression('a').standard() | b.expression('b').standard()
a
Out[1]:
In [2]:
a = a.standard()
a
Out[2]:
The initial state has 1 as (initial) weight.
In [3]:
%%automaton -s a
context = "lal_char, z"
$ -> 0 <2>
0 -> 1 a
0 -> 2 b
1 -> $
2 -> $
In [4]:
a.standard()
Out[4]:
There is no incoming transition on the initial state.
In [5]:
%%automaton -s a
context = "lal_char, z"
$ -> 0 <2>
0 -> $ <2>
0 -> 1 a
1 -> 0 b
In [6]:
a.standard()
Out[6]: