From b1480a4ef15efbf3f9a16670e6ad81ab7cbaacfc Mon Sep 17 00:00:00 2001 From: aarne Date: Mon, 19 Dec 2005 17:01:39 +0000 Subject: wrote on resource in tutorial --- doc/tutorial/gf-tutorial2.html | 61 +++++++++++++++++++++++++++++++++++------- 1 file changed, 52 insertions(+), 9 deletions(-) (limited to 'doc/tutorial/gf-tutorial2.html') diff --git a/doc/tutorial/gf-tutorial2.html b/doc/tutorial/gf-tutorial2.html index 85d69fbcb..d2f5b31a0 100644 --- a/doc/tutorial/gf-tutorial2.html +++ b/doc/tutorial/gf-tutorial2.html @@ -7,7 +7,7 @@

Grammatical Framework Tutorial

Author: Aarne Ranta <aarne (at) cs.chalmers.se>
-Last update: Mon Dec 19 17:31:35 2005 +Last update: Mon Dec 19 18:00:23 2005

@@ -96,8 +96,8 @@ Last update: Mon Dec 19 17:31:35 2005
  • More features of the module system
  • More concepts of abstract syntax @@ -2050,16 +2050,59 @@ they can be used as arguments. For example:

    More features of the module system

    +

    Interfaces, instances, and functors

    +

    Resource grammars and their reuse

    -See -resource library documentation +A resource grammar is a grammar built on linguistic grounds, +to describe a language rather than a domain. +The GF resource grammar library contains resource grammars for +10 languages, is described more closely in the following +documents: +

    + + +

    +However, to give a flavour of both using and writing resource grammars, +we have created a miniature resource, which resides in the +subdirectory resource. Its API consists of the following +modules: +

    + + +

    +Only these three modules should be opened in applications. +The implementations of the resource are given in the following four modules: +

    + + +

    +An example use of the resource resides in the +subdirectory applications. +It implements the abstract syntax +FoodComments for English and Italian. +The following diagram shows the module structure, indicating by +colours which modules are written by the grammarian. The two blue modules +form the abstract syntax. The three red modules form the concrete syntax. +The two green modules are trivial instantiations of a functor. +The rest of the modules (black) come from the resource.

    - -

    Interfaces, instances, and functors

    -See an -example built this way +

    Restricted inheritance and qualified opening

    -- cgit v1.2.3