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.
112 lines
2.7 KiB
112 lines
2.7 KiB
4 years ago
|
{
|
||
|
"kind" : "Program",
|
||
|
"location" : [ 1, 1, 7, 1 ],
|
||
|
"declarations" : [ ],
|
||
|
"statements" : [ {
|
||
|
"kind" : "IfStmt",
|
||
|
"location" : [ 1, 1, 7, 1 ],
|
||
|
"condition" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 1, 4, 1, 8 ],
|
||
|
"left" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 1, 4, 1, 4 ],
|
||
|
"value" : 1
|
||
|
},
|
||
|
"operator" : ">",
|
||
|
"right" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 1, 8, 1, 8 ],
|
||
|
"value" : 2
|
||
|
}
|
||
|
},
|
||
|
"thenBody" : [ {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 2, 5, 2, 12 ],
|
||
|
"expr" : {
|
||
|
"kind" : "CallExpr",
|
||
|
"location" : [ 2, 5, 2, 12 ],
|
||
|
"function" : {
|
||
|
"kind" : "Identifier",
|
||
|
"location" : [ 2, 5, 2, 9 ],
|
||
|
"name" : "print"
|
||
|
},
|
||
|
"args" : [ {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 2, 11, 2, 11 ],
|
||
|
"value" : 1
|
||
|
} ]
|
||
|
}
|
||
|
} ],
|
||
|
"elseBody" : [ {
|
||
|
"kind" : "IfStmt",
|
||
|
"location" : [ 3, 1, 7, 1 ],
|
||
|
"condition" : {
|
||
|
"kind" : "BinaryExpr",
|
||
|
"location" : [ 3, 6, 3, 11 ],
|
||
|
"left" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 3, 6, 3, 6 ],
|
||
|
"value" : 3
|
||
|
},
|
||
|
"operator" : "==",
|
||
|
"right" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 3, 11, 3, 11 ],
|
||
|
"value" : 4
|
||
|
}
|
||
|
},
|
||
|
"thenBody" : [ {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 4, 5, 4, 12 ],
|
||
|
"expr" : {
|
||
|
"kind" : "CallExpr",
|
||
|
"location" : [ 4, 5, 4, 12 ],
|
||
|
"function" : {
|
||
|
"kind" : "Identifier",
|
||
|
"location" : [ 4, 5, 4, 9 ],
|
||
|
"name" : "print"
|
||
|
},
|
||
|
"args" : [ {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 4, 11, 4, 11 ],
|
||
|
"value" : 2
|
||
|
} ]
|
||
|
}
|
||
|
} ],
|
||
|
"elseBody" : [ {
|
||
|
"kind" : "IfStmt",
|
||
|
"location" : [ 5, 1, 7, 1 ],
|
||
|
"condition" : {
|
||
|
"kind" : "BooleanLiteral",
|
||
|
"location" : [ 5, 6, 5, 9 ],
|
||
|
"value" : true
|
||
|
},
|
||
|
"thenBody" : [ {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 6, 5, 6, 12 ],
|
||
|
"expr" : {
|
||
|
"kind" : "CallExpr",
|
||
|
"location" : [ 6, 5, 6, 12 ],
|
||
|
"function" : {
|
||
|
"kind" : "Identifier",
|
||
|
"location" : [ 6, 5, 6, 9 ],
|
||
|
"name" : "print"
|
||
|
},
|
||
|
"args" : [ {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 6, 11, 6, 11 ],
|
||
|
"value" : 3
|
||
|
} ]
|
||
|
}
|
||
|
} ],
|
||
|
"elseBody" : [ ]
|
||
|
} ]
|
||
|
} ]
|
||
|
} ],
|
||
|
"errors" : {
|
||
|
"errors" : [ ],
|
||
|
"kind" : "Errors",
|
||
|
"location" : [ 0, 0, 0, 0 ]
|
||
|
}
|
||
|
}
|