67b09e185ee33d38580bc1ae4be51419b7a7ebc9 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. function {
  8. name {
  9. name: "Main"
  10. }
  11. param_pattern {
  12. }
  13. return_term {
  14. kind: Expression
  15. type {
  16. int_type_literal {
  17. }
  18. }
  19. }
  20. body {
  21. statements {
  22. variable_definition {
  23. pattern {
  24. tuple_pattern {
  25. fields {
  26. binding_pattern {
  27. name: "x"
  28. type {
  29. auto_pattern {
  30. }
  31. }
  32. }
  33. }
  34. fields {
  35. binding_pattern {
  36. name: "y"
  37. type {
  38. auto_pattern {
  39. }
  40. }
  41. }
  42. }
  43. }
  44. }
  45. init {
  46. tuple_literal {
  47. fields {
  48. int_literal {
  49. value: 2
  50. }
  51. }
  52. fields {
  53. int_literal {
  54. value: 3
  55. }
  56. }
  57. }
  58. }
  59. is_returned: false
  60. }
  61. }
  62. statements {
  63. return_expression_statement {
  64. expression {
  65. operator {
  66. op: Sub
  67. arguments {
  68. operator {
  69. op: Sub
  70. arguments {
  71. identifier {
  72. name: "y"
  73. }
  74. }
  75. arguments {
  76. identifier {
  77. name: "x"
  78. }
  79. }
  80. }
  81. }
  82. arguments {
  83. int_literal {
  84. value: 1
  85. }
  86. }
  87. }
  88. }
  89. }
  90. }
  91. }
  92. }
  93. }
  94. }