aboutsummaryrefslogblamecommitdiffstats
path: root/test-files/mds-kbdc/make-tree/valid/if-elseif-else
blob: 461ebc71d2c2dbd5328e47ecd6aa8f745db0618a (plain) (tree)












































                                                 
if \1
  <letter \1> : "\1"
else if \2
  <letter \2> : "\2"
else
  <letter \3> : "\3"
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 (@ 3 3-7) ‘\2’
#       (.inner
#         (map (@ 4 4-4)
#           (.sequence
#             (keys (@ 4 4-15) ‘<letter \2>’)
#           )
#           (.result
#             (string (@ 4 18-22) ‘"\2"’)
#           )
#         )
#       )
#       (.otherwise
#         (map (@ 6 4-4)
#           (.sequence
#             (keys (@ 6 4-15) ‘<letter \3>’)
#           )
#           (.result
#             (string (@ 6 18-22) ‘"\3"’)
#           )
#         )
#       )
#     )
#   )
# )