finished the partial evaluator

This commit is contained in:
krangelov
2021-10-07 11:47:51 +02:00
parent fd6cd382c5
commit e33d881ce8
7 changed files with 79 additions and 3 deletions

View File

@@ -27,3 +27,4 @@ cc <case "xyababbbab" of {x + #ab_patt* => x; _ => "?"} : Str>
cc test "abcd"
cc test "xyz"
cc <\x -> case x of {"q1" => Q1; _ => Q2} : Str -> Q>
cc pre {"в"|"ф"=>"във"; _=>"в"}