summaryrefslogtreecommitdiff
path: root/examples/gfcc/Imper.gf
diff options
context:
space:
mode:
authoraarne <unknown>2004-09-25 21:49:21 +0000
committeraarne <unknown>2004-09-25 21:49:21 +0000
commite1617bbb8e7d7dfa8ba4ba50cf1c321610f57ace (patch)
tree20c027980047347c9e8199c4d78a24105ef54d9f /examples/gfcc/Imper.gf
parent2094e335df40545a5303e0b2340f53e54f8e5896 (diff)
version 2 of doc
Diffstat (limited to 'examples/gfcc/Imper.gf')
-rw-r--r--examples/gfcc/Imper.gf6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/gfcc/Imper.gf b/examples/gfcc/Imper.gf
index 06b2f9d95..93d37f2d7 100644
--- a/examples/gfcc/Imper.gf
+++ b/examples/gfcc/Imper.gf
@@ -19,7 +19,6 @@ abstract Imper = PredefAbs ** {
(Fun AS V -> Rec AS) -> Program ;
FunctNil : (V : Typ) ->
Stm -> (Fun NilTyp V -> Program) -> Program ;
-
RecOne : (A : Typ) -> (Var A -> Stm) -> Program -> Rec (ConsTyp A NilTyp) ;
RecCons : (A : Typ) -> (AS : ListTyp) ->
(Var A -> Rec AS) -> Program -> Rec (ConsTyp A AS) ;
@@ -38,16 +37,15 @@ abstract Imper = PredefAbs ** {
EInt : Int -> Exp (TNum TInt) ;
EFloat : Int -> Int -> Exp (TNum TFloat) ;
ELt : (n : NumTyp) -> let Ex = Exp (TNum n) in Ex -> Ex -> Exp (TNum TInt) ;
- EApp : (AS : ListTyp) -> (V : Typ) -> Fun AS V -> ListExp AS -> Exp V ;
EAdd, EMul, ESub : (n : NumTyp) -> let Ex = Exp (TNum n) in Ex -> Ex -> Ex ;
+ EAppNil : (V : Typ) -> Fun NilTyp V -> Exp V ;
+ EApp : (AS : ListTyp) -> (V : Typ) -> Fun AS V -> ListExp AS -> Exp V ;
TNum : NumTyp -> Typ ;
TInt, TFloat : NumTyp ;
-
NilTyp : ListTyp ;
ConsTyp : Typ -> ListTyp -> ListTyp ;
- NilExp : ListExp NilTyp ;
OneExp : (A : Typ) -> Exp A -> ListExp (ConsTyp A NilTyp) ;
ConsExp : (A : Typ) -> (AS : ListTyp) ->
Exp A -> ListExp AS -> ListExp (ConsTyp A AS) ;