-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathast.txt
1 lines (1 loc) · 2.53 KB
/
ast.txt
1
"[{\"type\":\"Struct\",\"name\":\"Cell\",\"members\":[\"x\",\"y\",\"arr\"]},{\"type\":\"Var\",\"name\":\"cell\",\"value\":{\"type\":\"Instance\",\"name\":\"Cell\",\"members\":{\"x\":{\"type\":\"Literal\",\"value\":2.0},\"y\":{\"type\":\"Literal\",\"value\":3.0}}}},{\"type\":\"Call\",\"caller\":{\"type\":\"Var\",\"name\":\"print\",\"value\":null},\"args\":[{\"type\":\"Var\",\"name\":\"cell\",\"value\":null}]},{\"type\":\"Var\",\"name\":\"arr\",\"value\":{\"type\":\"Array\",\"value\":[{\"type\":\"Literal\",\"value\":2.0},{\"type\":\"Literal\",\"value\":3.0},{\"type\":\"Literal\",\"value\":1.0},{\"type\":\"Literal\",\"value\":4.0},{\"type\":\"Literal\",\"value\":9.0},{\"type\":\"Literal\",\"value\":3.0}]}},{\"type\":\"Call\",\"caller\":{\"type\":\"Get\",\"caller\":{\"type\":\"Var\",\"name\":\"arr\",\"value\":null},\"property\":{\"type\":\"Literal\",\"value\":\"sort\"},\"isExpr\":false},\"args\":[]},{\"type\":\"Call\",\"caller\":{\"type\":\"Var\",\"name\":\"print\",\"value\":null},\"args\":[{\"type\":\"Var\",\"name\":\"arr\",\"value\":null}]},{\"type\":\"Call\",\"caller\":{\"type\":\"Get\",\"caller\":{\"type\":\"Var\",\"name\":\"arr\",\"value\":null},\"property\":{\"type\":\"Literal\",\"value\":\"pop\"},\"isExpr\":false},\"args\":[]},{\"type\":\"Call\",\"caller\":{\"type\":\"Var\",\"name\":\"print\",\"value\":null},\"args\":[{\"type\":\"Var\",\"name\":\"arr\",\"value\":null}]},{\"type\":\"Var\",\"name\":\"i\",\"value\":{\"type\":\"Literal\",\"value\":0.0}},{\"type\":\"Var\",\"name\":\"sum\",\"value\":{\"type\":\"Literal\",\"value\":0.0}},{\"type\":\"Var\",\"name\":\"a\",\"value\":{\"type\":\"Literal\",\"value\":1.0}},{\"type\":\"Var\",\"name\":\"b\",\"value\":{\"type\":\"Literal\",\"value\":1.0}},{\"type\":\"Var\",\"name\":\"name\",\"value\":{\"type\":\"Literal\",\"value\":\"Justin\"}},{\"type\":\"While\",\"condition\":{\"type\":\"Binary\",\"left\":{\"type\":\"Var\",\"name\":\"i\",\"value\":null},\"operator\":\"<\",\"right\":{\"type\":\"Literal\",\"value\":10.0}},\"body\":[{\"type\":\"Var\",\"name\":\"tmp\",\"value\":{\"type\":\"Var\",\"name\":\"b\",\"value\":null}},{\"type\":\"Var\",\"name\":\"b\",\"value\":{\"type\":\"Binary\",\"left\":{\"type\":\"Var\",\"name\":\"a\",\"value\":null},\"operator\":\"+\",\"right\":{\"type\":\"Var\",\"name\":\"b\",\"value\":null}}},{\"type\":\"Var\",\"name\":\"a\",\"value\":{\"type\":\"Var\",\"name\":\"tmp\",\"value\":null}},{\"type\":\"Var\",\"name\":\"i\",\"value\":{\"type\":\"Binary\",\"left\":{\"type\":\"Var\",\"name\":\"i\",\"value\":null},\"operator\":\"+\",\"right\":{\"type\":\"Literal\",\"value\":1.0}}}]}]"