aboutsummaryrefslogblamecommitdiffstats
path: root/test-files/mds-kbdc/make-tree/valid/if-else
blob: 796f2bf3a742ad4727b0374ae4f0dd3a321b849b (plain) (tree)
1
2
3
4
5
6




                    
                






















                                             







                                        
 
if \1
  <letter \1> : "\1"
else
  <letter \2> : "\2"
end if
<letter a> : "a"

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