{ "kind" : "Program", "location" : [ 1, 1, 5, 1 ], "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 ], "inferredType" : { "kind" : "ClassValueType", "className" : "int" }, "value" : 0 } } ], "statements" : [ { "kind" : "ForStmt", "location" : [ 3, 1, 5, 1 ], "identifier" : { "kind" : "Identifier", "location" : [ 3, 5, 3, 5 ], "inferredType" : { "kind" : "ClassValueType", "className" : "int" }, "name" : "x" }, "iterable" : { "kind" : "ListExpr", "location" : [ 3, 10, 3, 18 ], "inferredType" : { "kind" : "ListValueType", "elementType" : { "kind" : "ClassValueType", "className" : "int" } }, "elements" : [ { "kind" : "IntegerLiteral", "location" : [ 3, 11, 3, 11 ], "inferredType" : { "kind" : "ClassValueType", "className" : "int" }, "value" : 1 }, { "kind" : "IntegerLiteral", "location" : [ 3, 14, 3, 14 ], "inferredType" : { "kind" : "ClassValueType", "className" : "int" }, "value" : 2 }, { "kind" : "IntegerLiteral", "location" : [ 3, 17, 3, 17 ], "inferredType" : { "kind" : "ClassValueType", "className" : "int" }, "value" : 3 } ] }, "body" : [ { "kind" : "ExprStmt", "location" : [ 4, 5, 4, 9 ], "expr" : { "kind" : "BinaryExpr", "location" : [ 4, 5, 4, 9 ], "inferredType" : { "kind" : "ClassValueType", "className" : "int" }, "left" : { "kind" : "Identifier", "location" : [ 4, 5, 4, 5 ], "inferredType" : { "kind" : "ClassValueType", "className" : "int" }, "name" : "x" }, "operator" : "+", "right" : { "kind" : "IntegerLiteral", "location" : [ 4, 9, 4, 9 ], "inferredType" : { "kind" : "ClassValueType", "className" : "int" }, "value" : 1 } } } ] } ], "errors" : { "errors" : [ ], "kind" : "Errors", "location" : [ 0, 0, 0, 0 ] } }