summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2008-10-14 14:34:08 +0000
committeraarne <aarne@cs.chalmers.se>2008-10-14 14:34:08 +0000
commite4dc63f6657153da1a8c906f669581905f054e4a (patch)
treeafc76783d1b890e7420cc3eabc15d882fedcb299 /examples
parentec2d7e2299cb7d1d9c786d7d8afdbcc8a526e50d (diff)
rudimentary abstract syntax type checker and solver in PGF
Diffstat (limited to 'examples')
-rw-r--r--examples/test/typecheck/Check.gf14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/test/typecheck/Check.gf b/examples/test/typecheck/Check.gf
new file mode 100644
index 000000000..38d098209
--- /dev/null
+++ b/examples/test/typecheck/Check.gf
@@ -0,0 +1,14 @@
+abstract Check = {
+
+cat Typ ; Exp Typ ;
+
+fun plus : (t : Typ) -> (_,_ : Exp t) -> Exp t ;
+
+fun TInt, TFloat : Typ ;
+
+fun Zero : Exp TInt ;
+fun Pi : Exp TFloat ;
+
+fun sqrt : Exp TFloat -> Exp TFloat ;
+
+}