forked from GitHub/gf-core
added testcases for abstract syntax computation
This commit is contained in:
@@ -26,4 +26,9 @@ def four = twice (twice one) ;
|
|||||||
fun exp : Nat -> Nat ;
|
fun exp : Nat -> Nat ;
|
||||||
def exp Zero = one ;
|
def exp Zero = one ;
|
||||||
def exp (Succ x) = twice (exp x) ;
|
def exp (Succ x) = twice (exp x) ;
|
||||||
|
|
||||||
|
fun plus' : Nat -> Nat -> Nat ;
|
||||||
|
def plus' Zero = \y -> y ;
|
||||||
|
def plus' (Succ x) = \y -> Succ (plus x y) ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
11
testsuite/paraphrase/test.gfs.gold
Normal file
11
testsuite/paraphrase/test.gfs.gold
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Succ (Succ Zero)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Succ (Succ (Succ Zero))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Succ (Succ Zero)
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user