From cb0c13d82e6d8f12029ace572b8ae4e788dcfa9a Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Fri, 18 Jun 2021 15:33:42 +0200 Subject: First step towards aggregates. --- pyGHDL/dom/formatting/prettyprint.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pyGHDL/dom/formatting/prettyprint.py') 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.") -- cgit v1.2.3