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_unary.py.ast.typed

53 lines
1.2 KiB

{
"kind" : "Program",
"location" : [ 1, 1, 2, 10 ],
"declarations" : [ ],
"statements" : [ {
"kind" : "ExprStmt",
"location" : [ 1, 1, 1, 2 ],
"expr" : {
"kind" : "UnaryExpr",
"location" : [ 1, 1, 1, 2 ],
"inferredType" : {
"kind" : "ClassValueType",
"className" : "int"
},
"operator" : "-",
"operand" : {
"kind" : "IntegerLiteral",
"location" : [ 1, 2, 1, 2 ],
"inferredType" : {
"kind" : "ClassValueType",
"className" : "int"
},
"value" : 1
}
}
}, {
"kind" : "ExprStmt",
"location" : [ 2, 1, 2, 9 ],
"expr" : {
"kind" : "UnaryExpr",
"location" : [ 2, 1, 2, 9 ],
"inferredType" : {
"kind" : "ClassValueType",
"className" : "bool"
},
"operator" : "not",
"operand" : {
"kind" : "BooleanLiteral",
"location" : [ 2, 5, 2, 9 ],
"inferredType" : {
"kind" : "ClassValueType",
"className" : "bool"
},
"value" : false
}
}
} ],
"errors" : {
"errors" : [ ],
"kind" : "Errors",
"location" : [ 0, 0, 0, 0 ]
}
}