55 lines
1.7 KiB
JSON
55 lines
1.7 KiB
JSON
|
|
{
|
||
|
|
"type": "Program",
|
||
|
|
"statements": [
|
||
|
|
{
|
||
|
|
"FunctionStatement": {
|
||
|
|
"type": "FunctionStatement",
|
||
|
|
"name": {
|
||
|
|
"type": "IdentifierLiteral",
|
||
|
|
"value": "test"
|
||
|
|
},
|
||
|
|
"return_type": "Int",
|
||
|
|
"parameters": [],
|
||
|
|
"body": {
|
||
|
|
"type": "BlockStatement",
|
||
|
|
"statements": [
|
||
|
|
{
|
||
|
|
"type": "ReturnStatement",
|
||
|
|
"return_value": {
|
||
|
|
"type": "IntegerLiteral",
|
||
|
|
"value": 123
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"FunctionStatement": {
|
||
|
|
"type": "FunctionStatement",
|
||
|
|
"name": {
|
||
|
|
"type": "IdentifierLiteral",
|
||
|
|
"value": "main"
|
||
|
|
},
|
||
|
|
"return_type": "Int",
|
||
|
|
"parameters": [],
|
||
|
|
"body": {
|
||
|
|
"type": "BlockStatement",
|
||
|
|
"statements": [
|
||
|
|
{
|
||
|
|
"type": "ReturnStatement",
|
||
|
|
"return_value": {
|
||
|
|
"type": "CallExpression",
|
||
|
|
"function": {
|
||
|
|
"type": "IdentifierLiteral",
|
||
|
|
"value": "test"
|
||
|
|
},
|
||
|
|
"arguments": []
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|