Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Program(
- ImportDeclList(
- ImportDecl(
- printf
- ),
- null
- ),
- null,
- MethodDeclList(
- MethodDecl(
- ReturnType(
- void
- ),
- bar,
- ParamList(
- Param(
- Type(
- int
- ),
- a
- ),
- null
- ),
- Block(
- FieldDeclList(
- FieldDecl(
- Type(
- int
- ),
- IdList(
- i,
- null,
- null
- )
- ),
- null
- ),
- StatementList(
- ForStatement(
- i,
- LiteralExpr(
- INTLITERAL(),
- 0
- ),
- LocationExpr(
- a,
- null
- ),
- LocationExpr(
- a,
- null
- ),
- AssignExpr(
- +=,
- BinaryExpr(
- LocationExpr(
- a,
- null
- ),
- ArithOp(
- +
- ),
- BinaryExpr(
- LocationExpr(
- a,
- null
- ),
- ArithOp(
- /
- ),
- BinaryExpr(
- LocationExpr(
- a,
- null
- ),
- ArithOp(
- +
- ),
- MethodExpr(
- MethodCall(
- printf,
- ExpressionList(
- LocationExpr(
- a,
- null
- ),
- null
- )
- )
- )
- )
- )
- )
- ),
- Block(
- null,
- StatementList(
- MethodStatement(
- MethodCall(
- printf,
- ExpressionList(
- ImportArgExpr(
- "%d\n"
- ),
- ExpressionList(
- LocationExpr(
- i,
- null
- ),
- null
- )
- )
- )
- ),
- StatementList(
- IfStatement(
- BinaryExpr(
- LocationExpr(
- a,
- null
- ),
- EqOp(
- ==
- ),
- LiteralExpr(
- INTLITERAL(),
- 4
- )
- ),
- Block(
- null,
- StatementList(
- BreakStatement(),
- null
- )
- ),
- null
- ),
- null
- )
- )
- )
- ),
- null
- )
- )
- ),
- MethodDeclList(
- MethodDecl(
- ReturnType(
- void
- ),
- main,
- null,
- Block(
- null,
- StatementList(
- MethodStatement(
- MethodCall(
- bar,
- ExpressionList(
- LiteralExpr(
- INTLITERAL(),
- 10
- ),
- null
- )
- )
- ),
- null
- )
- )
- ),
- null
- )
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement