sim: support execution of nested statement lists

This commit is contained in:
Sebastien Bourdeauducq 2015-10-15 13:52:24 +08:00
parent 48d22a7588
commit 3b7f1264f1
1 changed files with 2 additions and 0 deletions

View File

@ -193,6 +193,8 @@ class Evaluator:
return return
if "default" in s.cases: if "default" in s.cases:
self.execute(s.cases["default"]) self.execute(s.cases["default"])
elif isinstance(s, list):
execute(s)
else: else:
raise NotImplementedError raise NotImplementedError