forked from GitHub/gf-core
Cleaned up names and paths in toy0 grammars.
This commit is contained in:
15
examples/regulus/toy0/no-functor/Toy0.gf
Normal file
15
examples/regulus/toy0/no-functor/Toy0.gf
Normal file
@@ -0,0 +1,15 @@
|
||||
-- toy0 grammar from Chapter 2 of the Regulus book
|
||||
abstract Toy0 = {
|
||||
|
||||
flags startcat=NP ;
|
||||
|
||||
cat
|
||||
NP ;
|
||||
Noun ;
|
||||
Spec ;
|
||||
|
||||
fun
|
||||
SpecNoun : Spec -> Noun -> NP ;
|
||||
One, Two : Spec ;
|
||||
Felis, Canis : Noun ;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
--# -path=..:present:api:prelude
|
||||
--# -path=.:present:api:prelude
|
||||
concrete Toy0Eng of Toy0 =
|
||||
open SyntaxEng, ParadigmsEng in {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--# -path=..:present:prelude
|
||||
--# -path=.:present:prelude
|
||||
|
||||
concrete Toy0Fin0 of Toy0 = open SyntaxFin, ParadigmsFin in {
|
||||
concrete Toy0Fin of Toy0 = open SyntaxFin, ParadigmsFin in {
|
||||
|
||||
lincat
|
||||
Spec = Det ;
|
||||
Reference in New Issue
Block a user