diff options
| author | aarne <aarne@cs.chalmers.se> | 2008-06-25 16:54:35 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2008-06-25 16:54:35 +0000 |
| commit | e9e80fc389365e24d4300d7d5390c7d833a96c50 (patch) | |
| tree | f0b58473adaa670bd8fc52ada419d8cad470ee03 /old-examples/regulus/toy0/example-based | |
| parent | b96b36f43de3e2f8b58d5f539daa6f6d47f25870 (diff) | |
changed names of resource-1.3; added a note on homepage on release
Diffstat (limited to 'old-examples/regulus/toy0/example-based')
| -rw-r--r-- | old-examples/regulus/toy0/example-based/Toy0.gf | 15 | ||||
| -rw-r--r-- | old-examples/regulus/toy0/example-based/Toy0Ger.gf | 6 | ||||
| -rw-r--r-- | old-examples/regulus/toy0/example-based/Toy0I.gfe | 23 |
3 files changed, 44 insertions, 0 deletions
diff --git a/old-examples/regulus/toy0/example-based/Toy0.gf b/old-examples/regulus/toy0/example-based/Toy0.gf new file mode 100644 index 000000000..b1e2d6a40 --- /dev/null +++ b/old-examples/regulus/toy0/example-based/Toy0.gf @@ -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 ; +} diff --git a/old-examples/regulus/toy0/example-based/Toy0Ger.gf b/old-examples/regulus/toy0/example-based/Toy0Ger.gf new file mode 100644 index 000000000..7355cbfac --- /dev/null +++ b/old-examples/regulus/toy0/example-based/Toy0Ger.gf @@ -0,0 +1,6 @@ +--# -path=.:present:prelude + +concrete Toy0Ger of Toy0 = Toy0I with + (Grammar = GrammarGer), + (Lexicon = LexiconGer) ; + diff --git a/old-examples/regulus/toy0/example-based/Toy0I.gfe b/old-examples/regulus/toy0/example-based/Toy0I.gfe new file mode 100644 index 000000000..4589bf4b6 --- /dev/null +++ b/old-examples/regulus/toy0/example-based/Toy0I.gfe @@ -0,0 +1,23 @@ +--# -resource=present/LangEng.gfc +--# -path=.:present:prelude + +-- to compile: gf -examples Toy0I.gfe + +incomplete concrete Toy0I of Toy0 = open Grammar, Lexicon in { + +lincat + Spec = Det ; + Noun = N ; + NP = Utt ; + +lin + SpecNoun every_Det house_N = in Utt "every house" ; + + One = in Det "one" ; + Two = in Det "two" ; + + Felis = in N "cat" ; + Canis = in N "dog" ; + +} + |
