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.
92 lines
2.1 KiB
92 lines
2.1 KiB
{
|
|
"kind" : "Program",
|
|
"location" : [ 1, 1, 4, 9 ],
|
|
"declarations" : [ {
|
|
"kind" : "FuncDef",
|
|
"location" : [ 1, 1, 2, 17 ],
|
|
"name" : {
|
|
"kind" : "Identifier",
|
|
"location" : [ 1, 5, 1, 7 ],
|
|
"name" : "foo"
|
|
},
|
|
"params" : [ {
|
|
"kind" : "TypedVar",
|
|
"location" : [ 1, 9, 1, 13 ],
|
|
"identifier" : {
|
|
"kind" : "Identifier",
|
|
"location" : [ 1, 9, 1, 9 ],
|
|
"name" : "x"
|
|
},
|
|
"type" : {
|
|
"kind" : "ClassType",
|
|
"location" : [ 1, 11, 1, 13 ],
|
|
"className" : "int"
|
|
}
|
|
}, {
|
|
"kind" : "TypedVar",
|
|
"location" : [ 1, 16, 1, 20 ],
|
|
"identifier" : {
|
|
"kind" : "Identifier",
|
|
"location" : [ 1, 16, 1, 16 ],
|
|
"name" : "y"
|
|
},
|
|
"type" : {
|
|
"kind" : "ClassType",
|
|
"location" : [ 1, 18, 1, 20 ],
|
|
"className" : "int"
|
|
}
|
|
} ],
|
|
"returnType" : {
|
|
"kind" : "ClassType",
|
|
"location" : [ 1, 26, 1, 29 ],
|
|
"className" : "bool"
|
|
},
|
|
"declarations" : [ ],
|
|
"statements" : [ {
|
|
"kind" : "ReturnStmt",
|
|
"location" : [ 2, 5, 2, 16 ],
|
|
"value" : {
|
|
"kind" : "BinaryExpr",
|
|
"location" : [ 2, 12, 2, 16 ],
|
|
"left" : {
|
|
"kind" : "Identifier",
|
|
"location" : [ 2, 12, 2, 12 ],
|
|
"name" : "x"
|
|
},
|
|
"operator" : ">",
|
|
"right" : {
|
|
"kind" : "Identifier",
|
|
"location" : [ 2, 16, 2, 16 ],
|
|
"name" : "y"
|
|
}
|
|
}
|
|
} ]
|
|
} ],
|
|
"statements" : [ {
|
|
"kind" : "ExprStmt",
|
|
"location" : [ 4, 1, 4, 8 ],
|
|
"expr" : {
|
|
"kind" : "CallExpr",
|
|
"location" : [ 4, 1, 4, 8 ],
|
|
"function" : {
|
|
"kind" : "Identifier",
|
|
"location" : [ 4, 1, 4, 3 ],
|
|
"name" : "foo"
|
|
},
|
|
"args" : [ {
|
|
"kind" : "IntegerLiteral",
|
|
"location" : [ 4, 5, 4, 5 ],
|
|
"value" : 1
|
|
}, {
|
|
"kind" : "IntegerLiteral",
|
|
"location" : [ 4, 7, 4, 7 ],
|
|
"value" : 2
|
|
} ]
|
|
}
|
|
} ],
|
|
"errors" : {
|
|
"errors" : [ ],
|
|
"kind" : "Errors",
|
|
"location" : [ 0, 0, 0, 0 ]
|
|
}
|
|
} |