Files
ChocoPy/pa2-tests/core/bad_expr_unary.py.ast
T
2021-04-11 13:32:23 -04:00

62 lines
1.3 KiB
Plaintext

{
"kind" : "Program",
"location" : [ 1, 1, 4, 7 ],
"declarations" : [ ],
"statements" : [ {
"kind" : "ExprStmt",
"location" : [ 1, 1, 1, 9 ],
"expr" : {
"kind" : "UnaryExpr",
"location" : [ 1, 1, 1, 9 ],
"operator" : "not",
"operand" : {
"kind" : "StringLiteral",
"location" : [ 1, 5, 1, 9 ],
"value" : "Bad"
}
}
}, {
"kind" : "ExprStmt",
"location" : [ 2, 1, 2, 5 ],
"expr" : {
"kind" : "UnaryExpr",
"location" : [ 2, 1, 2, 5 ],
"operator" : "-",
"operand" : {
"kind" : "BooleanLiteral",
"location" : [ 2, 2, 2, 5 ],
"value" : true
}
}
}, {
"kind" : "ExprStmt",
"location" : [ 3, 1, 3, 5 ],
"expr" : {
"kind" : "UnaryExpr",
"location" : [ 3, 1, 3, 5 ],
"operator" : "-",
"operand" : {
"kind" : "NoneLiteral",
"location" : [ 3, 2, 3, 5 ]
}
}
}, {
"kind" : "ExprStmt",
"location" : [ 4, 1, 4, 6 ],
"expr" : {
"kind" : "UnaryExpr",
"location" : [ 4, 1, 4, 6 ],
"operator" : "not",
"operand" : {
"kind" : "ListExpr",
"location" : [ 4, 5, 4, 6 ],
"elements" : [ ]
}
}
} ],
"errors" : {
"errors" : [ ],
"kind" : "Errors",
"location" : [ 0, 0, 0, 0 ]
}
}