1
0
forked from GitHub/gf-core

added testcase for linearization with HOAS

This commit is contained in:
krasimir
2009-06-18 17:47:06 +00:00
parent 13232a5e81
commit eeb08bbd4d
4 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
abstract Test = {
cat P ;
cat E ;
fun Exist : (E -> P) -> P ;
Even : E -> P ;
}

View File

@@ -0,0 +1,7 @@
concrete TestCnc of Test = {
lincat E,P = {s:Str} ;
lin Exist f = {s = "exists" ++ f.$0 ++ "such that" ++ f.s};
lin Even x = {s = x.s ++ "is even"};
}

View File

@@ -0,0 +1,3 @@
i testsuite/runtime/linearize/TestCnc.gf
l Exist (\x -> Even x)

View File

@@ -0,0 +1,3 @@
exists x such that x is even