summaryrefslogtreecommitdiff
path: root/examples/gfcc/ResImperEng.gf
diff options
context:
space:
mode:
authoraarne <unknown>2005-10-05 07:47:26 +0000
committeraarne <unknown>2005-10-05 07:47:26 +0000
commitfff9b01aa91cf8f2f2b78641d6234cda459370f1 (patch)
treebb04ed6c153470ef82320f91aec02c56d6da3923 /examples/gfcc/ResImperEng.gf
parent1d83b32f6175ba2e534ca17155b63f4b16f21496 (diff)
ENglish
Diffstat (limited to 'examples/gfcc/ResImperEng.gf')
-rw-r--r--examples/gfcc/ResImperEng.gf16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/gfcc/ResImperEng.gf b/examples/gfcc/ResImperEng.gf
new file mode 100644
index 000000000..87cb30a54
--- /dev/null
+++ b/examples/gfcc/ResImperEng.gf
@@ -0,0 +1,16 @@
+resource ResImperEng = open Predef, Prelude in {
+
+ oper
+ indef = pre {"a" ;
+ "an" / strs {"a" ; "e" ; "i" ; "o" ; "A" ; "E" ; "I" ; "O" }} ;
+
+ constant : Str -> SS = ss ;
+ prefix : Str -> SS -> SS -> SS = \f,x,y ->
+ ss ("the" ++ f ++ "of" ++ x.s ++ "and" ++ y.s) ;
+ comparison : Str -> SS -> SS -> SS = \f,x,y ->
+ ss (x.s ++ "is" ++ f ++ "than" ++ y.s) ;
+ continues : Str -> SS -> SS = \s,t -> ss (s ++ "." ++ t.s) ;
+ continue : Str -> SS -> SS = \s,t -> ss (s ++ t.s) ;
+ statement : Str -> SS = \s -> ss (s ++ ".");
+
+}