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.
150 lines
3.2 KiB
150 lines
3.2 KiB
{
|
|
"kind" : "Program",
|
|
"location" : [ 1, 1, 9, 6 ],
|
|
"declarations" : [ {
|
|
"kind" : "VarDef",
|
|
"location" : [ 1, 1, 1, 9 ],
|
|
"var" : {
|
|
"kind" : "TypedVar",
|
|
"location" : [ 1, 1, 1, 5 ],
|
|
"identifier" : {
|
|
"kind" : "Identifier",
|
|
"location" : [ 1, 1, 1, 1 ],
|
|
"name" : "x"
|
|
},
|
|
"type" : {
|
|
"kind" : "ClassType",
|
|
"location" : [ 1, 3, 1, 5 ],
|
|
"className" : "int"
|
|
}
|
|
},
|
|
"value" : {
|
|
"kind" : "IntegerLiteral",
|
|
"location" : [ 1, 9, 1, 9 ],
|
|
"value" : 1
|
|
}
|
|
}, {
|
|
"kind" : "VarDef",
|
|
"location" : [ 2, 1, 2, 13 ],
|
|
"var" : {
|
|
"kind" : "TypedVar",
|
|
"location" : [ 2, 1, 2, 6 ],
|
|
"identifier" : {
|
|
"kind" : "Identifier",
|
|
"location" : [ 2, 1, 2, 1 ],
|
|
"name" : "y"
|
|
},
|
|
"type" : {
|
|
"kind" : "ClassType",
|
|
"location" : [ 2, 3, 2, 6 ],
|
|
"className" : "bool"
|
|
}
|
|
},
|
|
"value" : {
|
|
"kind" : "BooleanLiteral",
|
|
"location" : [ 2, 10, 2, 13 ],
|
|
"value" : true
|
|
}
|
|
}, {
|
|
"kind" : "VarDef",
|
|
"location" : [ 3, 1, 3, 10 ],
|
|
"var" : {
|
|
"kind" : "TypedVar",
|
|
"location" : [ 3, 1, 3, 5 ],
|
|
"identifier" : {
|
|
"kind" : "Identifier",
|
|
"location" : [ 3, 1, 3, 1 ],
|
|
"name" : "z"
|
|
},
|
|
"type" : {
|
|
"kind" : "ClassType",
|
|
"location" : [ 3, 3, 3, 5 ],
|
|
"className" : "str"
|
|
}
|
|
},
|
|
"value" : {
|
|
"kind" : "StringLiteral",
|
|
"location" : [ 3, 9, 3, 10 ],
|
|
"value" : ""
|
|
}
|
|
}, {
|
|
"kind" : "VarDef",
|
|
"location" : [ 4, 1, 4, 15 ],
|
|
"var" : {
|
|
"kind" : "TypedVar",
|
|
"location" : [ 4, 1, 4, 8 ],
|
|
"identifier" : {
|
|
"kind" : "Identifier",
|
|
"location" : [ 4, 1, 4, 1 ],
|
|
"name" : "o"
|
|
},
|
|
"type" : {
|
|
"kind" : "ClassType",
|
|
"location" : [ 4, 3, 4, 8 ],
|
|
"className" : "object"
|
|
}
|
|
},
|
|
"value" : {
|
|
"kind" : "NoneLiteral",
|
|
"location" : [ 4, 12, 4, 15 ]
|
|
}
|
|
} ],
|
|
"statements" : [ {
|
|
"kind" : "AssignStmt",
|
|
"location" : [ 6, 1, 6, 5 ],
|
|
"targets" : [ {
|
|
"kind" : "Identifier",
|
|
"location" : [ 6, 1, 6, 1 ],
|
|
"name" : "x"
|
|
} ],
|
|
"value" : {
|
|
"kind" : "IntegerLiteral",
|
|
"location" : [ 6, 5, 6, 5 ],
|
|
"value" : 2
|
|
}
|
|
}, {
|
|
"kind" : "AssignStmt",
|
|
"location" : [ 7, 1, 7, 9 ],
|
|
"targets" : [ {
|
|
"kind" : "Identifier",
|
|
"location" : [ 7, 1, 7, 1 ],
|
|
"name" : "y"
|
|
} ],
|
|
"value" : {
|
|
"kind" : "BooleanLiteral",
|
|
"location" : [ 7, 5, 7, 9 ],
|
|
"value" : false
|
|
}
|
|
}, {
|
|
"kind" : "AssignStmt",
|
|
"location" : [ 8, 1, 8, 11 ],
|
|
"targets" : [ {
|
|
"kind" : "Identifier",
|
|
"location" : [ 8, 1, 8, 1 ],
|
|
"name" : "z"
|
|
} ],
|
|
"value" : {
|
|
"kind" : "StringLiteral",
|
|
"location" : [ 8, 5, 8, 11 ],
|
|
"value" : "Hello"
|
|
}
|
|
}, {
|
|
"kind" : "AssignStmt",
|
|
"location" : [ 9, 1, 9, 5 ],
|
|
"targets" : [ {
|
|
"kind" : "Identifier",
|
|
"location" : [ 9, 1, 9, 1 ],
|
|
"name" : "o"
|
|
} ],
|
|
"value" : {
|
|
"kind" : "Identifier",
|
|
"location" : [ 9, 5, 9, 5 ],
|
|
"name" : "z"
|
|
}
|
|
} ],
|
|
"errors" : {
|
|
"errors" : [ ],
|
|
"kind" : "Errors",
|
|
"location" : [ 0, 0, 0, 0 ]
|
|
}
|
|
} |