new tutorial example

This commit is contained in:
aarne
2005-12-18 21:26:21 +00:00
parent a205829623
commit 6398140d0a
34 changed files with 940 additions and 668 deletions

View File

@@ -0,0 +1,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" ;