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.
ChocoPy/pa2-tests/core/bad_concat.py.ast

77 lines
1.7 KiB

4 years ago
{
"kind" : "Program",
"location" : [ 1, 1, 3, 9 ],
"declarations" : [ ],
"statements" : [ {
"kind" : "ExprStmt",
"location" : [ 1, 1, 1, 19 ],
"expr" : {
"kind" : "BinaryExpr",
"location" : [ 1, 1, 1, 19 ],
"left" : {
"kind" : "StringLiteral",
"location" : [ 1, 1, 1, 7 ],
"value" : "Hello"
},
"operator" : "+",
"right" : {
"kind" : "ListExpr",
"location" : [ 1, 11, 1, 19 ],
"elements" : [ {
"kind" : "StringLiteral",
"location" : [ 1, 12, 1, 18 ],
"value" : "World"
} ]
}
}
}, {
"kind" : "ExprStmt",
"location" : [ 2, 1, 2, 7 ],
"expr" : {
"kind" : "BinaryExpr",
"location" : [ 2, 1, 2, 7 ],
"left" : {
"kind" : "IntegerLiteral",
"location" : [ 2, 1, 2, 1 ],
"value" : 1
},
"operator" : "+",
"right" : {
"kind" : "ListExpr",
"location" : [ 2, 5, 2, 7 ],
"elements" : [ {
"kind" : "IntegerLiteral",
"location" : [ 2, 6, 2, 6 ],
"value" : 2
} ]
}
}
}, {
"kind" : "ExprStmt",
"location" : [ 3, 1, 3, 8 ],
"expr" : {
"kind" : "BinaryExpr",
"location" : [ 3, 1, 3, 8 ],
"left" : {
"kind" : "ListExpr",
"location" : [ 3, 1, 3, 2 ],
"elements" : [ ]
},
"operator" : "+",
"right" : {
"kind" : "ListExpr",
"location" : [ 3, 6, 3, 8 ],
"elements" : [ {
"kind" : "IntegerLiteral",
"location" : [ 3, 7, 3, 7 ],
"value" : 1
} ]
}
}
} ],
"errors" : {
"errors" : [ ],
"kind" : "Errors",
"location" : [ 0, 0, 0, 0 ]
}
}