tricu

An interpreted language for exploring Tree Calculus
Log | Files | Refs | README | LICENSE

base.tri (380B)


      1 !import base as B
      2 !import conversions as C
      3 !export append
      4 !export matchResult
      5 !export showNumber
      6 
      7 -- Small public foundation for Result-aware command-line consumers.
      8 -- matchResult receives failure first, success second; each handler gets
      9 -- a payload and a remainder. showNumber accepts canonical naturals.
     10 append = B.append
     11 matchResult = B.matchResult
     12 showNumber = C.showNumber