| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- compilation_unit {
- package_statement {
- package_name: "ExplorerTest"
- }
- is_api: true
- declarations {
- function {
- name {
- name: "CompareStr"
- }
- param_pattern {
- fields {
- binding_pattern {
- name: "s"
- type {
- expression_pattern {
- expression {
- string_type_literal {
- }
- }
- }
- }
- }
- }
- }
- return_term {
- kind: Expression
- type {
- int_type_literal {
- }
- }
- }
- body {
- statements {
- if_statement {
- condition {
- operator {
- op: Eq
- arguments {
- identifier {
- name: "s"
- }
- }
- arguments {
- string_literal {
- value: "str;\007"
- }
- }
- }
- }
- then_block {
- statements {
- return_expression_statement {
- expression {
- int_literal {
- value: 0
- }
- }
- }
- }
- }
- }
- }
- statements {
- return_expression_statement {
- expression {
- int_literal {
- value: 1
- }
- }
- }
- }
- }
- }
- }
- declarations {
- function {
- name {
- name: "Main"
- }
- param_pattern {
- }
- return_term {
- kind: Expression
- type {
- int_type_literal {
- }
- }
- }
- body {
- statements {
- return_expression_statement {
- expression {
- call {
- function {
- identifier {
- name: "CompareStr"
- }
- }
- argument {
- tuple_literal {
- fields {
- string_literal {
- value: "str;\007"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
|