summaryrefslogtreecommitdiff
path: root/doc/tutorial/paleolithic.ebnf
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorial/paleolithic.ebnf')
-rw-r--r--doc/tutorial/paleolithic.ebnf8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/tutorial/paleolithic.ebnf b/doc/tutorial/paleolithic.ebnf
new file mode 100644
index 000000000..96b155993
--- /dev/null
+++ b/doc/tutorial/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 ::= "bird" | "boy" | "man" | "louse" | "snake" | "worm" ;
+A ::= "big" | "green" | "rotten" | "thick" | "warm" ;
+V ::= "laughs" | "sleeps" | "swims" ;
+TV ::= "eats" | "kills" | "washes" ;