{ "kind" : "Program", "location" : [ 1, 1, 9, 8 ], "declarations" : [ { "kind" : "VarDef", "location" : [ 1, 1, 1, 15 ], "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" : "str" } }, "value" : { "kind" : "StringLiteral", "location" : [ 1, 9, 1, 15 ], "value" : "Hello" } }, { "kind" : "VarDef", "location" : [ 2, 1, 2, 15 ], "var" : { "kind" : "TypedVar", "location" : [ 2, 1, 2, 5 ], "identifier" : { "kind" : "Identifier", "location" : [ 2, 1, 2, 1 ], "name" : "y" }, "type" : { "kind" : "ClassType", "location" : [ 2, 3, 2, 5 ], "className" : "str" } }, "value" : { "kind" : "StringLiteral", "location" : [ 2, 9, 2, 15 ], "value" : "World" } }, { "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" : "" } } ], "statements" : [ { "kind" : "ExprStmt", "location" : [ 5, 1, 5, 5 ], "expr" : { "kind" : "BinaryExpr", "location" : [ 5, 1, 5, 5 ], "left" : { "kind" : "IntegerLiteral", "location" : [ 5, 1, 5, 1 ], "value" : 1 }, "operator" : "+", "right" : { "kind" : "Identifier", "location" : [ 5, 5, 5, 5 ], "name" : "x" } } }, { "kind" : "AssignStmt", "location" : [ 6, 1, 6, 9 ], "targets" : [ { "kind" : "Identifier", "location" : [ 6, 1, 6, 1 ], "name" : "z" } ], "value" : { "kind" : "BinaryExpr", "location" : [ 6, 5, 6, 9 ], "left" : { "kind" : "Identifier", "location" : [ 6, 5, 6, 5 ], "name" : "x" }, "operator" : "+", "right" : { "kind" : "IntegerLiteral", "location" : [ 6, 9, 6, 9 ], "value" : 1 } } }, { "kind" : "AssignStmt", "location" : [ 7, 1, 7, 12 ], "targets" : [ { "kind" : "Identifier", "location" : [ 7, 1, 7, 1 ], "name" : "z" }, { "kind" : "IndexExpr", "location" : [ 7, 5, 7, 8 ], "list" : { "kind" : "Identifier", "location" : [ 7, 5, 7, 5 ], "name" : "x" }, "index" : { "kind" : "IntegerLiteral", "location" : [ 7, 7, 7, 7 ], "value" : 0 } } ], "value" : { "kind" : "Identifier", "location" : [ 7, 12, 7, 12 ], "name" : "y" } }, { "kind" : "AssignStmt", "location" : [ 8, 1, 8, 8 ], "targets" : [ { "kind" : "IndexExpr", "location" : [ 8, 1, 8, 4 ], "list" : { "kind" : "Identifier", "location" : [ 8, 1, 8, 1 ], "name" : "x" }, "index" : { "kind" : "IntegerLiteral", "location" : [ 8, 3, 8, 3 ], "value" : 1 } } ], "value" : { "kind" : "Identifier", "location" : [ 8, 8, 8, 8 ], "name" : "y" } }, { "kind" : "ExprStmt", "location" : [ 9, 1, 9, 7 ], "expr" : { "kind" : "IndexExpr", "location" : [ 9, 1, 9, 7 ], "list" : { "kind" : "Identifier", "location" : [ 9, 1, 9, 1 ], "name" : "x" }, "index" : { "kind" : "BooleanLiteral", "location" : [ 9, 3, 9, 6 ], "value" : true } } } ], "errors" : { "errors" : [ ], "kind" : "Errors", "location" : [ 0, 0, 0, 0 ] } }