This commit is contained in:
SpookyDervish
2025-10-15 16:23:51 +11:00
parent a75dcb933e
commit 549f650b54
7 changed files with 51 additions and 26 deletions

View File

@@ -56,24 +56,44 @@
"type": "BlockStatement",
"statements": [
{
"type": "ReturnStatement",
"return_value": {
"type": "ExpressionStatement",
"expr": {
"type": "CallExpression",
"function": {
"type": "IdentifierLiteral",
"value": "add"
"value": "print"
},
"arguments": [
{
"type": "IntegerLiteral",
"value": 1
"type": "StringLiteral",
"value": "apples %i"
},
{
"type": "IntegerLiteral",
"value": 2
"type": "CallExpression",
"function": {
"type": "IdentifierLiteral",
"value": "add"
},
"arguments": [
{
"type": "IntegerLiteral",
"value": 1
},
{
"type": "IntegerLiteral",
"value": 2
}
]
}
]
}
},
{
"type": "ReturnStatement",
"return_value": {
"type": "IntegerLiteral",
"value": 0
}
}
]
}