leo/ast/tests/serialization/expected_leo_ast.json

66 lines
1.7 KiB
JSON
Raw Normal View History

{
"name": "leo_tree",
2020-08-03 06:56:22 +03:00
"expected_input": [],
"imports": [],
"circuits": {},
"functions": {
"{\"name\":\"main\",\"span\":\"{\\\"text\\\":\\\" function main() {\\\",\\\"line\\\":1,\\\"start\\\":10,\\\"end\\\":14}\"}": {
"identifier": "{\"name\":\"main\",\"span\":\"{\\\"text\\\":\\\" function main() {\\\",\\\"line\\\":1,\\\"start\\\":10,\\\"end\\\":14}\"}",
2020-08-03 06:56:22 +03:00
"input": [],
2020-10-27 03:46:42 +03:00
"output": null,
"block" : {
"statements": [
{
"Return": [
{
"Add": [[
{
"Implicit": [
"1",
{
"text": " return 1 + 1",
"line": 2,
"start": 12,
"end": 13
}
]
},
{
"Implicit": [
"1",
{
"text": " return 1 + 1",
"line": 2,
"start": 16,
"end": 17
}
]
}],
{
"text": " return 1 + 1",
"line": 2,
"start": 12,
"end": 17
}
]
},
{
"text": " return 1 + 1",
"line": 2,
"start": 5,
"end": 17
}
]
}
]
},
"span": {
"text": " function main() {",
"line": 1,
"start": 1,
"end": 1
}
}
},
"tests": {}
}