summaryrefslogtreecommitdiff
path: root/examples/regulus/toy0/no-functor
diff options
context:
space:
mode:
authorbringert <bringert@cs.chalmers.se>2007-06-27 12:50:42 +0000
committerbringert <bringert@cs.chalmers.se>2007-06-27 12:50:42 +0000
commita22de1a9f6b084189583797a84adc4dc4a624572 (patch)
tree13d50cce6d8501dd43909d2b125e34532e3c92ef /examples/regulus/toy0/no-functor
parentab99a1f89ad03b987ec93ecd81604529707735d4 (diff)
Cleaned up names and paths in toy0 grammars.
Diffstat (limited to 'examples/regulus/toy0/no-functor')
-rw-r--r--examples/regulus/toy0/no-functor/Toy0.gf15
-rw-r--r--examples/regulus/toy0/no-functor/Toy0Eng.gf2
-rw-r--r--examples/regulus/toy0/no-functor/Toy0Fin.gf (renamed from examples/regulus/toy0/no-functor/Toy0Fin0.gf)4
3 files changed, 18 insertions, 3 deletions
diff --git a/examples/regulus/toy0/no-functor/Toy0.gf b/examples/regulus/toy0/no-functor/Toy0.gf
new file mode 100644
index 000000000..b1e2d6a40
--- /dev/null
+++ b/examples/regulus/toy0/no-functor/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/examples/regulus/toy0/no-functor/Toy0Eng.gf b/examples/regulus/toy0/no-functor/Toy0Eng.gf
index 856da31c4..adc2068e1 100644
--- a/examples/regulus/toy0/no-functor/Toy0Eng.gf
+++ b/examples/regulus/toy0/no-functor/Toy0Eng.gf
@@ -1,4 +1,4 @@
---# -path=..:present:api:prelude
+--# -path=.:present:api:prelude
concrete Toy0Eng of Toy0 =
open SyntaxEng, ParadigmsEng in {
diff --git a/examples/regulus/toy0/no-functor/Toy0Fin0.gf b/examples/regulus/toy0/no-functor/Toy0Fin.gf
index 9a1875124..4ebbf6f36 100644
--- a/examples/regulus/toy0/no-functor/Toy0Fin0.gf
+++ b/examples/regulus/toy0/no-functor/Toy0Fin.gf
@@ -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 ;