Package gmisclib :: Module parse_tree_number :: Class Name
[frames] | no frames]

Class Name

source code


Instance Methods
 
__init__(self, name)
This creates a named variable.
source code
 
__str__(self, env={})
Env is optional.
source code
 
__repr__(self, env={})
Env is optional.
source code
 
eval(self, env)
This returns an Expression.
source code
 
variables(self, env={})
Any definitions in env are used to resolve otherwise undefined names.
source code
 
indices(self, variable, env={}) source code
 
debug(self) source code
 
__abs__(self) (Inherited from gmisclib.parse_tree_number.abstract_number) source code
 
__add__(self, other) (Inherited from gmisclib.parse_tree_number.abstract_number) source code
 
__div__(self, other) (Inherited from gmisclib.parse_tree_number.abstract_number) source code
 
__mul__(self, other) (Inherited from gmisclib.parse_tree_number.abstract_number) source code
 
__neg__(self) (Inherited from gmisclib.parse_tree_number.abstract_number) source code
 
__pos__(self) (Inherited from gmisclib.parse_tree_number.abstract_number) source code
 
__pow__(self, other) (Inherited from gmisclib.parse_tree_number.abstract_number) source code
 
__radd__(self, other) (Inherited from gmisclib.parse_tree_number.abstract_number) source code
 
__rdiv__(self, other) (Inherited from gmisclib.parse_tree_number.abstract_number) source code
 
__rmul__(self, other) (Inherited from gmisclib.parse_tree_number.abstract_number) source code
 
__rpow__(self, other) (Inherited from gmisclib.parse_tree_number.abstract_number) source code
 
__rsub__(self, other) (Inherited from gmisclib.parse_tree_number.abstract_number) source code
 
__rtruediv__(self, other) (Inherited from gmisclib.parse_tree_number.abstract_number) source code
 
__sub__(self, other) (Inherited from gmisclib.parse_tree_number.abstract_number) source code
 
__truediv__(self, other) (Inherited from gmisclib.parse_tree_number.abstract_number) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, name)
(Constructor)

source code 

This creates a named variable. Names are basic parts of expressions.

Overrides: object.__init__

__str__(self, env={})
(Informal representation operator)

source code 

Env is optional. Anything defined in env is used to resolve references, but the outcome may still contain undefined variables, which are printed as names.

Overrides: object.__str__
(inherited documentation)

__repr__(self, env={})
(Representation operator)

source code 

Env is optional. Anything defined in env is used to resolve references, but the outcome may still contain undefined variables, which are printed as names.

Overrides: object.__repr__
(inherited documentation)

eval(self, env)

source code 

This returns an Expression.

Overrides: output_mixin.eval
(inherited documentation)

variables(self, env={})

source code 

Any definitions in env are used to resolve otherwise undefined names. This returns a Set containing all undefined variable names.

Overrides: output_mixin.variables
(inherited documentation)

indices(self, variable, env={})

source code 
Overrides: output_mixin.indices

debug(self)

source code 
Overrides: output_mixin.debug