JEM tutorial examples - some files missing still

This commit is contained in:
aarne
2008-09-15 15:28:47 +00:00
parent 117b38e47f
commit e112fd188f
6 changed files with 254 additions and 0 deletions

34
examples/jem-math/Math.gf Normal file
View File

@@ -0,0 +1,34 @@
abstract Math = {
flags startcat = Prop ;
cat
Prop ; Exp ;
fun
And, Or, If : Prop -> Prop -> Prop ;
Zero : Exp ;
Successor : Exp -> Exp ;
Sum, Product : Exp -> Exp -> Exp ;
Even, Odd, Prime : Exp -> Prop ;
Equal, Less, Greater, Divisible : Exp -> Exp -> Prop ;
cat
Var ;
fun
X, Y : Var ;
EVar : Var -> Exp ;
EInt : Int -> Exp ;
ANumberVar : Var -> Exp ;
TheNumberVar : Var -> Exp ;
}