aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/formatting/prettyprint.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-18 15:33:42 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-19 15:25:07 +0200
commitcb0c13d82e6d8f12029ace572b8ae4e788dcfa9a (patch)
tree1de8e4ed226345064eb6bb0e25144cae9f585c51 /pyGHDL/dom/formatting/prettyprint.py
parente72d21499659f1bb4b641b9a83698354eb170eef (diff)
downloadghdl-cb0c13d82e6d8f12029ace572b8ae4e788dcfa9a.tar.gz
ghdl-cb0c13d82e6d8f12029ace572b8ae4e788dcfa9a.tar.bz2
ghdl-cb0c13d82e6d8f12029ace572b8ae4e788dcfa9a.zip
First step towards aggregates.
Diffstat (limited to 'pyGHDL/dom/formatting/prettyprint.py')
-rw-r--r--pyGHDL/dom/formatting/prettyprint.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py
index 59fdd485b..1f71c87d5 100644
--- a/pyGHDL/dom/formatting/prettyprint.py
+++ b/pyGHDL/dom/formatting/prettyprint.py
@@ -45,7 +45,7 @@ from pyGHDL.dom.Expression import (
InverseExpression,
AbsoluteExpression,
NegationExpression,
- ExponentiationExpression,
+ ExponentiationExpression, Aggregate,
)
StringBuffer = List[str]
@@ -375,5 +375,7 @@ class PrettyPrint:
right=self.formatExpression(expression.RightOperand),
operator=operator,
)
+ elif isinstance(expression, Aggregate):
+ print(Aggregate.Elements[0])
else:
raise PrettyPrintException("Unhandled expression kind.")