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/expr_concat.py.ast

93 lines
2.2 KiB

{
"kind" : "Program",
"location" : [ 1, 1, 3, 16 ],
"declarations" : [ ],
"statements" : [ {
"kind" : "ExprStmt",
"location" : [ 1, 1, 1, 15 ],
"expr" : {
"kind" : "BinaryExpr",
"location" : [ 1, 1, 1, 15 ],
"left" : {
"kind" : "ListExpr",
"location" : [ 1, 1, 1, 6 ],
"elements" : [ {
"kind" : "IntegerLiteral",
"location" : [ 1, 2, 1, 2 ],
"value" : 1
}, {
"kind" : "IntegerLiteral",
"location" : [ 1, 5, 1, 5 ],
"value" : 2
} ]
},
"operator" : "+",
"right" : {
"kind" : "ListExpr",
"location" : [ 1, 10, 1, 15 ],
"elements" : [ {
"kind" : "IntegerLiteral",
"location" : [ 1, 11, 1, 11 ],
"value" : 3
}, {
"kind" : "IntegerLiteral",
"location" : [ 1, 14, 1, 14 ],
"value" : 4
} ]
}
}
}, {
"kind" : "ExprStmt",
"location" : [ 2, 1, 2, 18 ],
"expr" : {
"kind" : "BinaryExpr",
"location" : [ 2, 1, 2, 18 ],
"left" : {
"kind" : "StringLiteral",
"location" : [ 2, 1, 2, 8 ],
"value" : "Hello "
},
"operator" : "+",
"right" : {
"kind" : "StringLiteral",
"location" : [ 2, 12, 2, 18 ],
"value" : "World"
}
}
}, {
"kind" : "ExprStmt",
"location" : [ 3, 1, 3, 15 ],
"expr" : {
"kind" : "BinaryExpr",
"location" : [ 3, 1, 3, 15 ],
"left" : {
"kind" : "ListExpr",
"location" : [ 3, 1, 3, 6 ],
"elements" : [ {
"kind" : "IntegerLiteral",
"location" : [ 3, 2, 3, 2 ],
"value" : 1
}, {
"kind" : "IntegerLiteral",
"location" : [ 3, 5, 3, 5 ],
"value" : 2
} ]
},
"operator" : "+",
"right" : {
"kind" : "ListExpr",
"location" : [ 3, 10, 3, 15 ],
"elements" : [ {
"kind" : "BooleanLiteral",
"location" : [ 3, 11, 3, 14 ],
"value" : true
} ]
}
}
} ],
"errors" : {
"errors" : [ ],
"kind" : "Errors",
"location" : [ 0, 0, 0, 0 ]
}
}