aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/make-tree/valid/if-else-if
blob: fe88c43b81d9647a58c6bd6953570d0190cc6b69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
if \1
  <letter \1> : "\1"
else
  if \2
    <letter \2> : "\2"
  end if
end if

# (if (@ 1 0-2) ‘\1’
#   (.inner
#     (map (@ 2 2-2)
#       (.sequence
#         (keys (@ 2 2-13) ‘<letter \1>’)
#       )
#       (.result
#         (string (@ 2 16-20) ‘"\1"’)
#       )
#     )
#   )
#   (.otherwise
#     (if (@ 4 2-4) ‘\2’
#       (.inner
#         (map (@ 5 4-4)
#           (.sequence
#             (keys (@ 5 4-15) ‘<letter \2>’)
#           )
#           (.result
#             (string (@ 5 18-22) ‘"\2"’)
#           )
#         )
#       )
#       (.otherwise nil)
#     )
#   )
# )