From a22871d07485821dac45a03380f77bdb28240ce6 Mon Sep 17 00:00:00 2001 From: aarne Date: Mon, 11 Jun 2007 07:49:30 +0000 Subject: initial check for unknown words in parsing --- examples/regulus/toy0/Toy0.gf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/regulus/toy0/Toy0.gf (limited to 'examples/regulus/toy0/Toy0.gf') diff --git a/examples/regulus/toy0/Toy0.gf b/examples/regulus/toy0/Toy0.gf new file mode 100644 index 000000000..ed0ba51e8 --- /dev/null +++ b/examples/regulus/toy0/Toy0.gf @@ -0,0 +1,18 @@ +abstract Toy0 = { + +-- grammar from Chapter 2 of the Regulus book + +flags startcat=MAIN ; + +cat + MAIN ; NP ; Noun ; Spec ; + +fun + Main : NP -> MAIN ; + SpecNoun : Spec -> Noun -> NP ; + + One, Two : Spec ; + Felis, Canis : Noun ; + +} + -- cgit v1.2.3