diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-04-06 13:19:51 -0400 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-04-06 13:19:51 -0400 |
commit | dc1c0b327a5427057e4268be74da8b2e46f0f98e (patch) | |
tree | 2a668bdac8a0c8c968c097b775c3cdb90c7cba19 /ast2json/imachine2json.py | |
parent | 3332be343ea24925795b7552155a8af2cea6c8d5 (diff) | |
download | html5ks-dc1c0b327a5427057e4268be74da8b2e46f0f98e.tar.xz html5ks-dc1c0b327a5427057e4268be74da8b2e46f0f98e.zip |
reimplement imachine
Diffstat (limited to 'ast2json/imachine2json.py')
-rwxr-xr-x | ast2json/imachine2json.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ast2json/imachine2json.py b/ast2json/imachine2json.py index db1878c..e865a73 100755 --- a/ast2json/imachine2json.py +++ b/ast2json/imachine2json.py @@ -8,9 +8,9 @@ def imachine2json(ast): if ast[0]['_type'] != 'Label': raise TypeError('obj does not start with Label, wrong file?') for label in ast: - if label['parameters'] is not None or label['hide']: + if label['parameters'] is not None: raise NotImplementedError() - ret[label['name']] = label + ret[label['name']] = label['block'] return ret with open(sys.argv[1], 'r') as f: |