mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 09:32:53 -06:00
Cleaned up names and paths in toy0 grammars.
This commit is contained in:
15
examples/regulus/toy0/no-resource/Toy0.gf
Normal file
15
examples/regulus/toy0/no-resource/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,3 @@
|
||||
--# -path=..
|
||||
concrete Toy0Eng of Toy0 = {
|
||||
|
||||
param
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
--# -path=..
|
||||
concrete Toy0Fre of Toy0 = {
|
||||
|
||||
param
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
--# -path=..
|
||||
concrete Toy0Ger of Toy0 = {
|
||||
|
||||
param
|
||||
@@ -8,10 +7,9 @@ param
|
||||
lincat
|
||||
Spec = {s : Gender => Str ; n : Number} ;
|
||||
Noun = {s : Number => Str ; g : Gender} ;
|
||||
MAIN,NP = {s : Str} ;
|
||||
NP = {s : Str} ;
|
||||
|
||||
lin
|
||||
Main np = np ;
|
||||
SpecNoun spec noun = {s = spec.s ! noun.g ++ noun.s ! spec.n} ;
|
||||
|
||||
One = {s = table {Fem => "eine" ; _ => "ein"} ; n = Sg} ;
|
||||
|
||||
Reference in New Issue
Block a user