diff options
| author | aarne <aarne@cs.chalmers.se> | 2008-09-15 15:28:47 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2008-09-15 15:28:47 +0000 |
| commit | e112fd188f905d90b727101fdbfa21478f4c9d18 (patch) | |
| tree | d149a7c013a3720d49cfaa028cc317b8f0ce186f /examples/jem-math/Math.gf | |
| parent | 117b38e47ff2c98402b975ada3240b5d4e996d86 (diff) | |
JEM tutorial examples - some files missing still
Diffstat (limited to 'examples/jem-math/Math.gf')
| -rw-r--r-- | examples/jem-math/Math.gf | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/examples/jem-math/Math.gf b/examples/jem-math/Math.gf new file mode 100644 index 000000000..b4e1cb2c2 --- /dev/null +++ b/examples/jem-math/Math.gf @@ -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 ; + +} |
