diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-08-02 03:30:53 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-08-23 16:35:33 +0200 |
commit | 2a571db9fecf39cc593b0a5666a540ef5cdc39fc (patch) | |
tree | 51aa344571f9ec7bad1e19443eff114ad70c2d64 /pyGHDL/dom | |
parent | c7f774ff0ade8efe292c00dd6ceb31c42d631278 (diff) | |
download | ghdl-2a571db9fecf39cc593b0a5666a540ef5cdc39fc.tar.gz ghdl-2a571db9fecf39cc593b0a5666a540ef5cdc39fc.tar.bz2 ghdl-2a571db9fecf39cc593b0a5666a540ef5cdc39fc.zip |
Disabled Python 3.8 syntax.
Diffstat (limited to 'pyGHDL/dom')
-rw-r--r-- | pyGHDL/dom/Concurrent.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pyGHDL/dom/Concurrent.py b/pyGHDL/dom/Concurrent.py index c9a67f1e1..6b07ff3ae 100644 --- a/pyGHDL/dom/Concurrent.py +++ b/pyGHDL/dom/Concurrent.py @@ -44,10 +44,9 @@ from pyVHDLModel.SyntaxModel import ( IfGenerateStatement as VHDLModel_IfGenerateStatement, CaseGenerateStatement as VHDLModel_CaseGenerateStatement, ForGenerateStatement as VHDLModel_ForGenerateStatement, - ConcurrentStatement, Name, + ConcurrentStatement, SequentialStatement, - IfGenerateBranch, Expression, ) @@ -256,12 +255,15 @@ class IfGenerateStatement(VHDLModel_IfGenerateStatement, DOMMixin): print(generateNode, GetIirKindOfNode(generateNode)) ifBranch = IfGenerateBranch.parse(generateNode) - elseClause = generateNode - while ( - elseClause := nodes.Get_Generate_Else_Clause(elseClause) - ) != nodes.Null_Iir: +# Python 3.8 syntax +# elseClause = generateNode +# while (elseClause := nodes.Get_Generate_Else_Clause(elseClause)) != nodes.Null_Iir: + elseClause = nodes.Get_Generate_Else_Clause(generateNode) + while elseClause != nodes.Null_Iir: print(elseClause, GetIirKindOfNode(elseClause)) + elseClause = nodes.Get_Generate_Else_Clause(elseClause) + return cls(generateNode, label, ifBranch) |