18e1ca7823d8ea4621b623c8c0cf64d94a4e61ef 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. variable {
  8. binding {
  9. name: "zero"
  10. type {
  11. expression_pattern {
  12. expression {
  13. int_type_literal {
  14. }
  15. }
  16. }
  17. }
  18. }
  19. initializer {
  20. int_literal {
  21. value: 1
  22. }
  23. }
  24. }
  25. }
  26. declarations {
  27. function {
  28. name: "Main"
  29. param_pattern {
  30. }
  31. return_term {
  32. kind: Expression
  33. type {
  34. int_type_literal {
  35. }
  36. }
  37. }
  38. body {
  39. statements {
  40. assign {
  41. lhs {
  42. identifier {
  43. name: "zero"
  44. }
  45. }
  46. rhs {
  47. int_literal {
  48. value: 0
  49. }
  50. }
  51. }
  52. }
  53. statements {
  54. return_expression_statement {
  55. expression {
  56. identifier {
  57. name: "zero"
  58. }
  59. }
  60. }
  61. }
  62. }
  63. }
  64. }
  65. }