summaryrefslogtreecommitdiff
path: root/doc/tutorial/old/paleolithic.ebnf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2005-12-18 21:26:21 +0000
committeraarne <aarne@cs.chalmers.se>2005-12-18 21:26:21 +0000
commit6398140d0ac21ad05a0c595b77007631cd5e1265 (patch)
treefae648d7e9e344fa850be37f1eb0b3b29e8f17e6 /doc/tutorial/old/paleolithic.ebnf
parenta205829623ea7b928c84e56cd6453148f123a3d5 (diff)
new tutorial example
Diffstat (limited to 'doc/tutorial/old/paleolithic.ebnf')
-rw-r--r--doc/tutorial/old/paleolithic.ebnf8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/tutorial/old/paleolithic.ebnf b/doc/tutorial/old/paleolithic.ebnf
new file mode 100644
index 000000000..cd091ae04
--- /dev/null
+++ b/doc/tutorial/old/paleolithic.ebnf
@@ -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" ;