summaryrefslogtreecommitdiff
path: root/doc/tutorial/paleolithic.ebnf
blob: cd091ae04edb8f947374c2ad881f61df883a9da9 (plain)
1
2
3
4
5
6
7
8
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" ;