forked from GitHub/gf-core
rudimentary abstract syntax type checker and solver in PGF
This commit is contained in:
14
examples/test/typecheck/Check.gf
Normal file
14
examples/test/typecheck/Check.gf
Normal file
@@ -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 ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user