You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.5 KiB
65 lines
1.5 KiB
3 years ago
|
{
|
||
|
"kind" : "Program",
|
||
|
"location" : [ 1, 1, 1, 15 ],
|
||
|
"declarations" : [ ],
|
||
|
"statements" : [ {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 1, 1, 1, 14 ],
|
||
|
"expr" : {
|
||
|
"kind" : "CallExpr",
|
||
|
"location" : [ 1, 1, 1, 14 ],
|
||
|
"inferredType" : {
|
||
|
"kind" : "ClassValueType",
|
||
|
"className" : "<None>"
|
||
|
},
|
||
|
"function" : {
|
||
|
"kind" : "Identifier",
|
||
|
"location" : [ 1, 1, 1, 5 ],
|
||
|
"inferredType" : {
|
||
|
"kind" : "FuncType",
|
||
|
"parameters" : [ {
|
||
|
"kind" : "ClassValueType",
|
||
|
"className" : "object"
|
||
|
} ],
|
||
|
"returnType" : {
|
||
|
"kind" : "ClassValueType",
|
||
|
"className" : "<None>"
|
||
|
}
|
||
|
},
|
||
|
"name" : "print"
|
||
|
},
|
||
|
"args" : [ {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 1, 7, 1, 13 ],
|
||
|
"inferredType" : {
|
||
|
"kind" : "ClassValueType",
|
||
|
"className" : "int"
|
||
|
},
|
||
|
"left" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 1, 7, 1, 8 ],
|
||
|
"inferredType" : {
|
||
|
"kind" : "ClassValueType",
|
||
|
"className" : "int"
|
||
|
},
|
||
|
"value" : 42
|
||
|
},
|
||
|
"operator" : "//",
|
||
|
"right" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 1, 13, 1, 13 ],
|
||
|
"inferredType" : {
|
||
|
"kind" : "ClassValueType",
|
||
|
"className" : "int"
|
||
|
},
|
||
|
"value" : 0
|
||
|
}
|
||
|
} ]
|
||
|
}
|
||
|
} ],
|
||
|
"errors" : {
|
||
|
"errors" : [ ],
|
||
|
"kind" : "Errors",
|
||
|
"location" : [ 0, 0, 0, 0 ]
|
||
|
}
|
||
|
}
|