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.
239 lines
5.4 KiB
239 lines
5.4 KiB
4 years ago
|
{
|
||
|
"kind" : "Program",
|
||
|
"location" : [ 1, 1, 13, 13 ],
|
||
|
"declarations" : [ ],
|
||
|
"statements" : [ {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 1, 1, 1, 7 ],
|
||
|
"expr" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 1, 1, 1, 7 ],
|
||
|
"left" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 1, 1, 1, 1 ],
|
||
|
"value" : 1
|
||
|
},
|
||
|
"operator" : "and",
|
||
|
"right" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 1, 7, 1, 7 ],
|
||
|
"value" : 2
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 2, 1, 2, 6 ],
|
||
|
"expr" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 2, 1, 2, 6 ],
|
||
|
"left" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 2, 1, 2, 1 ],
|
||
|
"value" : 1
|
||
|
},
|
||
|
"operator" : "or",
|
||
|
"right" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 2, 6, 2, 6 ],
|
||
|
"value" : 2
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 3, 1, 3, 12 ],
|
||
|
"expr" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 3, 1, 3, 12 ],
|
||
|
"left" : {
|
||
|
"kind" : "BooleanLiteral",
|
||
|
"location" : [ 3, 1, 3, 4 ],
|
||
|
"value" : true
|
||
|
},
|
||
|
"operator" : "-",
|
||
|
"right" : {
|
||
|
"kind" : "BooleanLiteral",
|
||
|
"location" : [ 3, 8, 3, 12 ],
|
||
|
"value" : false
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 4, 1, 4, 12 ],
|
||
|
"expr" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 4, 1, 4, 12 ],
|
||
|
"left" : {
|
||
|
"kind" : "BooleanLiteral",
|
||
|
"location" : [ 4, 1, 4, 4 ],
|
||
|
"value" : true
|
||
|
},
|
||
|
"operator" : "<",
|
||
|
"right" : {
|
||
|
"kind" : "BooleanLiteral",
|
||
|
"location" : [ 4, 8, 4, 12 ],
|
||
|
"value" : false
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 5, 1, 5, 8 ],
|
||
|
"expr" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 5, 1, 5, 8 ],
|
||
|
"left" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 5, 1, 5, 1 ],
|
||
|
"value" : 1
|
||
|
},
|
||
|
"operator" : "+",
|
||
|
"right" : {
|
||
|
"kind" : "BooleanLiteral",
|
||
|
"location" : [ 5, 5, 5, 8 ],
|
||
|
"value" : true
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 6, 1, 6, 9 ],
|
||
|
"expr" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 6, 1, 6, 9 ],
|
||
|
"left" : {
|
||
|
"kind" : "BooleanLiteral",
|
||
|
"location" : [ 6, 1, 6, 5 ],
|
||
|
"value" : false
|
||
|
},
|
||
|
"operator" : "+",
|
||
|
"right" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 6, 9, 6, 9 ],
|
||
|
"value" : 0
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 7, 1, 7, 9 ],
|
||
|
"expr" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 7, 1, 7, 9 ],
|
||
|
"left" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 7, 1, 7, 1 ],
|
||
|
"value" : 1
|
||
|
},
|
||
|
"operator" : "==",
|
||
|
"right" : {
|
||
|
"kind" : "BooleanLiteral",
|
||
|
"location" : [ 7, 6, 7, 9 ],
|
||
|
"value" : true
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 8, 1, 8, 10 ],
|
||
|
"expr" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 8, 1, 8, 10 ],
|
||
|
"left" : {
|
||
|
"kind" : "BooleanLiteral",
|
||
|
"location" : [ 8, 1, 8, 5 ],
|
||
|
"value" : false
|
||
|
},
|
||
|
"operator" : "!=",
|
||
|
"right" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 8, 10, 8, 10 ],
|
||
|
"value" : 0
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 9, 1, 9, 6 ],
|
||
|
"expr" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 9, 1, 9, 6 ],
|
||
|
"left" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 9, 1, 9, 1 ],
|
||
|
"value" : 1
|
||
|
},
|
||
|
"operator" : "is",
|
||
|
"right" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 9, 6, 9, 6 ],
|
||
|
"value" : 1
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 10, 1, 10, 13 ],
|
||
|
"expr" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 10, 1, 10, 13 ],
|
||
|
"left" : {
|
||
|
"kind" : "BooleanLiteral",
|
||
|
"location" : [ 10, 1, 10, 4 ],
|
||
|
"value" : true
|
||
|
},
|
||
|
"operator" : "is",
|
||
|
"right" : {
|
||
|
"kind" : "BooleanLiteral",
|
||
|
"location" : [ 10, 9, 10, 13 ],
|
||
|
"value" : false
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 11, 1, 11, 11 ],
|
||
|
"expr" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 11, 1, 11, 11 ],
|
||
|
"left" : {
|
||
|
"kind" : "NoneLiteral",
|
||
|
"location" : [ 11, 1, 11, 4 ]
|
||
|
},
|
||
|
"operator" : "+",
|
||
|
"right" : {
|
||
|
"kind" : "NoneLiteral",
|
||
|
"location" : [ 11, 8, 11, 11 ]
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 12, 1, 12, 12 ],
|
||
|
"expr" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 12, 1, 12, 12 ],
|
||
|
"left" : {
|
||
|
"kind" : "NoneLiteral",
|
||
|
"location" : [ 12, 1, 12, 4 ]
|
||
|
},
|
||
|
"operator" : "==",
|
||
|
"right" : {
|
||
|
"kind" : "NoneLiteral",
|
||
|
"location" : [ 12, 9, 12, 12 ]
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 13, 1, 13, 12 ],
|
||
|
"expr" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 13, 1, 13, 12 ],
|
||
|
"left" : {
|
||
|
"kind" : "NoneLiteral",
|
||
|
"location" : [ 13, 1, 13, 4 ]
|
||
|
},
|
||
|
"operator" : "is",
|
||
|
"right" : {
|
||
|
"kind" : "NoneLiteral",
|
||
|
"location" : [ 13, 9, 13, 12 ]
|
||
|
}
|
||
|
}
|
||
|
} ],
|
||
|
"errors" : {
|
||
|
"errors" : [ ],
|
||
|
"kind" : "Errors",
|
||
|
"location" : [ 0, 0, 0, 0 ]
|
||
|
}
|
||
|
}
|