leo/ast/tests/serialization/expected_leo_ast.json

64 lines
1.6 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,
"statements": [
{
"Return": [
2020-08-11 21:17:39 +03:00
{
"Add": [[
2020-08-11 21:17:39 +03:00
{
"Implicit": [
"1",
{
"text": " return 1 + 1",
"line": 2,
"start": 12,
"end": 13
}
]
},
{
"Implicit": [
"1",
{
"text": " return 1 + 1",
"line": 2,
"start": 16,
"end": 17
}
]
}],
2020-08-11 21:17:39 +03:00
{
"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": {}
}