expression.context

The context (algebraic type) of an expression.

See also:

Examples

In [1]:
import vcsn
e = vcsn.Q.expression('(<1/2>a*+<1/3>b*)*')
e.context()
Out[1]:
$\{a, b, \ldots\}\to\mathbb{Q}$