11.1.9.3.1. Ast¶
This module implements Abstract Syntactic Tree for Spice expressions.
-
class
PySpice.Spice.Expression.Ast.
Assignation
(*args, **kwargs)[source]¶ Bases:
PySpice.Spice.Expression.Ast.BinaryExpression
-
value
¶
-
variable
¶
-
-
class
PySpice.Spice.Expression.Ast.
BinaryOperator
(*args, **kwargs)[source]¶ Bases:
PySpice.Spice.Expression.Ast.BinaryExpression
,PySpice.Spice.Expression.Ast.OperatorMixin
-
class
PySpice.Spice.Expression.Ast.
Expression
(*args, **kwargs)[source]¶ Bases:
object
-
operand
¶
-
operand1
¶
-
operand2
¶
-
operand3
¶
-
-
class
PySpice.Spice.Expression.Ast.
Function
(name, *args)[source]¶ Bases:
PySpice.Spice.Expression.Ast.Expression
-
name
¶
-
-
class
PySpice.Spice.Expression.Ast.
If
(condition, then_expression, else_expression)[source]¶ Bases:
object
-
condition
¶
-
else_expression
¶
-
then_expression
¶
-
-
class
PySpice.Spice.Expression.Ast.
OperatorMetaclass
[source]¶ Bases:
type
Metaclass to register operators
-
class
PySpice.Spice.Expression.Ast.
UnaryOperator
(*args, **kwargs)[source]¶ Bases:
PySpice.Spice.Expression.Ast.UnaryExpression
,PySpice.Spice.Expression.Ast.OperatorMixin