tricu

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

sourceGateUnitCompiler.tri (365B)


      1 !import "prelude"     !Local
      2 !import "source.unit" !Local
      3 
      4 -- Separate artifact while the original single-expression gate remains stable.
      5 main = (source : compileGateProgram [] source)
      6 
      7 matchesExpected = (source expected :
      8   equal? (compileGateProgram [] source) expected)
      9 
     10 matchesOutput = (source expected :
     11   equal? (compileGateProgramOutput [] source) expected)