1
0
forked from GitHub/gf-core
Files
gf-core/doc/tutorial/old/paleolithic.ebnf
2005-12-18 21:26:21 +00:00

9 lines
276 B
EBNF

S ::= NP VP ;
VP ::= V | TV NP | "is" A ;
NP ::= ("this" | "that" | "the" | "a") CN ;
CN ::= A CN ;
CN ::= "boy" | "louse" | "snake" | "worm" ;
A ::= "green" | "rotten" | "thick" | "warm" ;
V ::= "laughs" | "sleeps" | "swims" ;
TV ::= "eats" | "kills" | "washes" ;