This commit is contained in:
aarne
2005-10-05 07:47:26 +00:00
parent ecea6794e9
commit 98dcc20e12
2 changed files with 86 additions and 0 deletions

View File

@@ -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 ++ ".");
}