started regulus grammar implementation

This commit is contained in:
aarne
2007-06-10 19:55:45 +00:00
parent fb730a75b5
commit 0f3d06022e
8 changed files with 175 additions and 0 deletions
+18
View File
@@ -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 ;
}