diff options
| author | aarne <aarne@cs.chalmers.se> | 2005-12-19 16:31:40 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2005-12-19 16:31:40 +0000 |
| commit | bfbe2e3d47e5f1904846609c80058f0561d76ede (patch) | |
| tree | e41e9d1f35e48afa7049b0d05362d10df7078ae6 /doc/tutorial/resource/Syntax.gf | |
| parent | 7878cd5e0ad8d8097a1f7a6b9885b4825fc47686 (diff) | |
resource examples
Diffstat (limited to 'doc/tutorial/resource/Syntax.gf')
| -rw-r--r-- | doc/tutorial/resource/Syntax.gf | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/doc/tutorial/resource/Syntax.gf b/doc/tutorial/resource/Syntax.gf new file mode 100644 index 000000000..4fef6b543 --- /dev/null +++ b/doc/tutorial/resource/Syntax.gf @@ -0,0 +1,46 @@ +abstract Syntax = { + + flags startcat=Phr ; + + cat + S ; -- declarative sentence e.g. "this pizza is good" + NP ; -- noun phrase e.g. "this pizza" + CN ; -- common noun e.g. "pizza" + Det ; -- determiner e.g. "this" + AP ; -- adjectival phrase e.g. "very good" + AdA ; -- adadjective e.g. "very" + VP ; -- verb phrase e.g. "is good" + V ; -- intransitive verb e.g. "boil" + V2 ; -- two-place verb e.g. "eat" + + fun + PosVP, NegVP : NP -> VP -> S ; + + PredAP : AP -> VP ; + PredV : V -> VP ; + PredV2 : V2 -> NP -> VP ; + + DetCN : Det -> CN -> NP ; + + ModCN : AP -> CN -> CN ; + + AdAP : AdA -> AP -> AP ; + + + -- entries of the closed lexicon + + this_Det : Det ; + that_Det : Det ; + these_Det : Det ; + those_Det : Det ; + every_Det : Det ; + theSg_Det : Det ; + thePl_Det : Det ; + a_Det : Det ; + plur_Det : Det ; + two_Det : Det ; + + very_AdA : AdA ; + too_AdA : AdA ; + +}
\ No newline at end of file |
