summaryrefslogtreecommitdiff
path: root/examples/tutorial/syntax/Grammar.gf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2007-10-17 19:08:09 +0000
committeraarne <aarne@cs.chalmers.se>2007-10-17 19:08:09 +0000
commit59052fd1b6e5b6ed76494aaf5ca8d6597a85d952 (patch)
tree8cc390bc0028eb623adbce32181abd2578d8fd87 /examples/tutorial/syntax/Grammar.gf
parent5028c62c669933464c24bd2989aca548b2f5dd1c (diff)
added coordination to tutorial grammar example.
Diffstat (limited to 'examples/tutorial/syntax/Grammar.gf')
-rw-r--r--examples/tutorial/syntax/Grammar.gf5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/tutorial/syntax/Grammar.gf b/examples/tutorial/syntax/Grammar.gf
index 7dd06f6df..5484321ee 100644
--- a/examples/tutorial/syntax/Grammar.gf
+++ b/examples/tutorial/syntax/Grammar.gf
@@ -19,6 +19,7 @@ abstract Grammar = {
V ; -- intransitive verb e.g. "boil"
V2 ; -- two-place verb e.g. "eat"
Pol ; -- polarity (pos or neg)
+ Conj ; -- conjunction e.g. "and"
fun
PhrS : S -> Phr ;
@@ -41,6 +42,9 @@ abstract Grammar = {
IDetCN : IDet -> CN -> IP ;
+ ConjS : Conj -> S -> S -> S ;
+ ConjNP : Conj -> NP -> NP -> NP ;
+
-- lexical insertion
UseN : N -> CN ;
@@ -64,6 +68,7 @@ abstract Grammar = {
very_AdA : AdA ;
+ and_Conj : Conj ;
-- polarities
PPos, PNeg : Pol ;