aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/_Translate.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-19 03:20:59 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-19 15:25:07 +0200
commitef0dbc726749df434036b23480b89f01cbe67d44 (patch)
treeb7573b77a0662773ffe30b100d7537de3d56f21a /pyGHDL/dom/_Translate.py
parent89f835733c4019c5cb087885a874f34cf4ff183d (diff)
downloadghdl-ef0dbc726749df434036b23480b89f01cbe67d44.tar.gz
ghdl-ef0dbc726749df434036b23480b89f01cbe67d44.tar.bz2
ghdl-ef0dbc726749df434036b23480b89f01cbe67d44.zip
Added handling of Parenthesis.
Diffstat (limited to 'pyGHDL/dom/_Translate.py')
-rw-r--r--pyGHDL/dom/_Translate.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyGHDL/dom/_Translate.py b/pyGHDL/dom/_Translate.py
index 8a4a717e9..24f056f33 100644
--- a/pyGHDL/dom/_Translate.py
+++ b/pyGHDL/dom/_Translate.py
@@ -56,6 +56,7 @@ from pyGHDL.dom.Expression import (
ExponentiationExpression,
Aggregate,
NegationExpression,
+ ParenthesisExpression,
)
__all__ = []
@@ -134,6 +135,7 @@ __EXPRESSION_TRANSLATION = {
nodes.Iir_Kind.Negation_Operator: NegationExpression,
nodes.Iir_Kind.Addition_Operator: AdditionExpression,
nodes.Iir_Kind.Not_Operator: InverseExpression,
+ nodes.Iir_Kind.Parenthesis_Expression: ParenthesisExpression,
nodes.Iir_Kind.Substraction_Operator: SubtractionExpression,
nodes.Iir_Kind.Multiplication_Operator: MultiplyExpression,
nodes.Iir_Kind.Division_Operator: DivisionExpression,