mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
ENglish
This commit is contained in:
16
examples/gfcc/ResImperEng.gf
Normal file
16
examples/gfcc/ResImperEng.gf
Normal 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 ++ ".");
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user