if-else.ast 557 B

1234567891011121314151617181920212223242526
  1. TranslationUnit[0:0->6:0]
  2. FunctionDeclaration[0:0->6:0]
  3. Type[0:0->0:3]
  4. bool
  5. foo
  6. (
  7. )
  8. FunctionDefinition[1:0->6:0]
  9. {
  10. IfStatement[2:4->5:20]
  11. Predicate:
  12. BinaryExpression[2:8->2:14]
  13. NumericLiteral[2:8->2:8]
  14. 1
  15. ==
  16. NumericLiteral[2:13->2:13]
  17. 2
  18. Then:
  19. ReturnStatement[3:8->3:19]
  20. BooleanLiteral[3:15->3:18]
  21. true
  22. Else:
  23. ReturnStatement[5:8->5:20]
  24. BooleanLiteral[5:15->5:19]
  25. false
  26. }