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_expr_unary.py.ast

62 lines
1.3 KiB

4 years ago
{
"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 ]
}
}