if-else.ast 714 B

123456789101112131415161718192021222324252627282930313233
  1. TranslationUnit[0:0->7:0]
  2. FunctionDeclaration[0:0->7:0]
  3. NamedType[0:0->0:2]
  4. int
  5. foo
  6. (
  7. )
  8. FunctionDefinition[1:0->7:0]
  9. {
  10. IfStatement[2:4->3:16]
  11. Predicate:
  12. NumericLiteral[2:8->2:8]
  13. 2
  14. Then:
  15. ReturnStatement[3:8->3:16]
  16. NumericLiteral[3:15->3:15]
  17. 2
  18. IfStatement[4:4->5:16]
  19. Predicate:
  20. BinaryExpression[4:8->4:12]
  21. NumericLiteral[4:8->4:8]
  22. 1
  23. <
  24. NumericLiteral[4:12->4:12]
  25. 2
  26. Then:
  27. ReturnStatement[5:8->5:16]
  28. NumericLiteral[5:15->5:15]
  29. 1
  30. ReturnStatement[6:4->6:12]
  31. NumericLiteral[6:11->6:11]
  32. 0
  33. }