1
0
forked from GitHub/gf-core
Files
gf-core/grammars/basic/English.gf
aarne 0ac49ec12f Experimenting with the new parser:
Experimenting with the new parser:
p -cat=S -new -parser=CF-BU "John walks"
2003-10-06 08:16:05 +00:00

28 lines
483 B
Plaintext

concrete English of Basic = {
lincat
S = {s : Str} ; NP = {s : Str} ; A1 = {s : Str} ; CN = {s : Str} ;
lin PredA1 Q F =
{s = Q.s ++ "is" ++ F.s} ;
lin CondS A B =
{s = "if" ++ A.s ++ "then" ++ B.s} ;
lin DisjA1 F G =
{s = F.s ++ "or" ++ G.s} ;
lin Every A =
{s = "every" ++ A.s} ;
lin ModA1 A F =
{s = F.s ++ A.s} ;
lin Number =
{s = "number"} ;
lin Even =
{s = "even"} ;
lin Odd =
{s = "odd"} ;
lin Prime =
{s = "prime"} ;
lin Zero =
{s = "zero"} ;
}