summaryrefslogtreecommitdiff
path: root/ast2json/imachine2json.py
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-04-06 13:19:51 -0400
committerAlex Xu <alex_y_xu@yahoo.ca>2014-04-06 13:19:51 -0400
commitdc1c0b327a5427057e4268be74da8b2e46f0f98e (patch)
tree2a668bdac8a0c8c968c097b775c3cdb90c7cba19 /ast2json/imachine2json.py
parent3332be343ea24925795b7552155a8af2cea6c8d5 (diff)
downloadhtml5ks-dc1c0b327a5427057e4268be74da8b2e46f0f98e.tar.xz
html5ks-dc1c0b327a5427057e4268be74da8b2e46f0f98e.zip
reimplement imachine
Diffstat (limited to 'ast2json/imachine2json.py')
-rwxr-xr-xast2json/imachine2json.py4
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: