3 Star 36 Fork 4

Laomo. / AIL

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
tree.txt 10.37 KB
一键复制 编辑 原始数据 按行查看 历史
Laomo. 提交于 2019-11-24 00:21 . fix bugs
{'BlockAST': [{'FunctionDefAST': {'arg_list': {'ArgList': [{'Cell': {'type': 20,
'value': 'number'}}]},
'block': {'BlockAST': [{'IfAST': {'body': {'BlockAST': [{'ReturnAST': {'expr': {'Cell': {'type': 21,
'value': '0'}}}}]},
'else_block': {'BlockAST': [{'IfAST': {'body': {'BlockAST': [{'ReturnAST': {'expr': {'Cell': {'type': 21,
'value': '2'}}}}]},
'else_block': {'BlockAST': [{'IfAST': {'body': {'BlockAST': [{'ReturnAST': {'expr': {'Cell': {'type': 21,
'value': '1'}}}}]},
'else_block': {'BlockAST': []},
'test': {'TestAST': {'CmpAST': {'left': {'Cell': {'type': 20,
'value': 'number'}},
'right': [['>',
{'Cell': {'type': 21,
'value': '726'}}]]}}}}}]},
'test': {'TestAST': {'CmpAST': {'left': {'Cell': {'type': 20,
'value': 'number'}},
'right': [['<',
{'Cell': {'type': 21,
'value': '726'}}]]}}}}}]},
'test': {'TestAST': {'CmpAST': {'left': {'Cell': {'type': 20,
'value': 'number'}},
'right': [['==',
{'Cell': {'type': 21,
'value': '726'}}]]}}}}}]},
'name': 'guess_it'}},
{'PrintAST': {'value': [{'Cell': {'type': 22,
'value': "Let's guess this "
'number (300 ~ '
'1000)'}}]}},
{'PrintAST': {'value': [{'Cell': {'type': 22,
'value': 'You have 5 '
'lives!'}}]}},
{'DefAST': {'name': 'lives',
'value': {'Cell': {'type': 21, 'value': '5'}}}},
{'DoLoopAST': {'body': {'BlockAST': [{'InputAST': {'list': {'ValueList': ['num']},
'msg': {'Cell': {'type': 22,
'value': 'Guess '
':'}}}},
{'DefAST': {'name': 's',
'value': {'CallAST': {'arg_list': {'ArgList': [{'Cell': {'type': 20,
'value': 'num'}}]},
'name': 'guess_it'}}}},
{'IfAST': {'body': {'BlockAST': [{'PrintAST': {'value': [{'Cell': {'type': 22,
'value': 'too '
'small!'}}]}}]},
'else_block': {'BlockAST': []},
'test': {'TestAST': {'CmpAST': {'left': {'Cell': {'type': 20,
'value': 's'}},
'right': [['==',
{'Cell': {'type': 21,
'value': '2'}}]]}}}}},
{'IfAST': {'body': {'BlockAST': [{'PrintAST': {'value': [{'Cell': {'type': 22,
'value': 'too '
'large!!!'}}]}}]},
'else_block': {'BlockAST': []},
'test': {'TestAST': {'CmpAST': {'left': {'Cell': {'type': 20,
'value': 's'}},
'right': [['==',
{'Cell': {'type': 21,
'value': '1'}}]]}}}}},
{'IfAST': {'body': {'BlockAST': [{'PrintAST': {'value': [{'Cell': {'type': 22,
'value': 'all '
'lives '
'run '
'out! '
'game '
'over!'}}]}}]},
'else_block': {'BlockAST': []},
'test': {'TestAST': {'CmpAST': {'left': {'DefAST': {'name': 'lives',
'value': {'BinAST': {'left': {'Cell': {'type': 20,
'value': 'lives'}},
'right': [['-',
{'Cell': {'type': 21,
'value': '1'}}]]}}}},
'right': [['==',
{'Cell': {'type': 21,
'value': '0'}}]]}}}}}]},
'test': {'TestAST': {'CmpAST': {'left': {'Cell': {'type': 20,
'value': 's'}},
'right': [['==',
{'Cell': {'type': 21,
'value': '0'}}]]}}}}}]}
1
https://gitee.com/LaomoBK/ail.git
git@gitee.com:LaomoBK/ail.git
LaomoBK
ail
AIL
3.0

搜索帮助