Files
ChocoPy/src/test/data/pa2/sample/expr_unary.py.ast
T
2021-03-03 14:08:57 +00:00

37 lines
788 B
Plaintext

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