expression | exp
Build the tuple of expressions, ie the kkk-tape expression whose behavior is the Cartesian product of the behaviors of the input expressions.
See also:
automaton.tuple
polynomial.tuple
import vcsn exp = vcsn.context('lan, q').expression e1 = exp('abc') e1
a b ca \, b \, cabc
e2 = exp('(<2>x)*') e2
(⟨2⟩ x)∗\left( \left\langle 2 \right\rangle \,x\right)^{*}(⟨2⟩x)∗
e1 | e2
a b c|(⟨2⟩ x)∗ \left. a \, b \, c \middle| \left( \left\langle 2 \right\rangle \,x\right)^{*} \right. abc(⟨2⟩x)∗
(e1 | e2).automaton()
e1.automaton() | e2.automaton()