From dc71ffcf5bae1f2b91467de273c71e7c3294acb3 Mon Sep 17 00:00:00 2001 From: aarne Date: Wed, 24 Mar 2004 15:09:06 +0000 Subject: Restoring old functionality --- doc/gf2-highlights.html | 58 +++++++++++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 24 deletions(-) (limited to 'doc') diff --git a/doc/gf2-highlights.html b/doc/gf2-highlights.html index d011a2875..bb950fb84 100644 --- a/doc/gf2-highlights.html +++ b/doc/gf2-highlights.html @@ -10,7 +10,7 @@ Highlights, preliminary version

-13/10/2003 - 25/11 +13/10/2003 - 25/11 - 24/3/2004

@@ -35,8 +35,10 @@ An accurate language specification is now available.

  • Hierarchic structure (extend) + cross-cutting reuse (open)
  • Separate compilation, one module per file
  • Reuse of abstract+concrete as resource -
  • New (experimental) module types: transfer, +
  • New module types: interface, instance, incomplete. +
  • New experimental module types: transfer, + union.

    Canonical format GFC

    @@ -46,6 +48,7 @@ An accurate language specification is now available.

    New features in expression language

  • Disjunctive patterns P | ... | Q. +
  • String patterns "foo".
  • Binding token &+ to glue separate tokens at unlexing phase, and unlexer to resolve this.
  • New syntax alternatives for local definitions: let without @@ -75,53 +78,47 @@ An accurate language specification is now available. -

    Status (25/11/2003)

    +

    Status (24/3/2004)

    Grammar compiler, editor GUIs, and shell work.

    +The updated HelpFile (accessible through h command) +marks unsupported but expected features with *. + +

    + GF1 grammars can be automatically translated to GF2 (although result not as good as manual, since indentation and comments are destroyed). The results can be saved in GF2 files, but this is not necessary.

    -Example grammars and resource libraries are in the process of -being converted. There will be a new API with +It is also possible to write a GF2 grammar back to GF1. + + +

    + +Example grammars and resource libraries are have been +converted. There is a new resource API with many new constructions. The new versions lie in grammars/newresource. -English and Swedish resources are up-to-date. -In the old API version, grammars/resource, the other languages -are up-to-date.

    A make facility works, finding out which modules have to be recompiled. There is some room for improvement. -
    -Bug. -Sometimes the grammar compiler gets confused if there are many -grammars open simultaneously. Then the advice is to empty -the environment (using e) and compile grammar one by one. -When read from gfc versions, there should be no problems -to have several grammars simultaneously.

    -The module type grammar (to build multilingual grammars) not yet -implemented. -transfer modules have to be called by flags +transfer modules have to be called by flags.

    -Abstract modules (interface, instance, and incomplete) -have not been stress-tested, but work in the examples in -resource/romance and resource/french. - -

    Soundness checking of module depencencies and completeness is not -complete. +complete. This means that some errors may show up too late. + @@ -167,6 +164,15 @@ line, e.g.

    +To write a GF2 grammar back to GF1 (as one big file), use the command +

    +  > pg -old
    +
    + + +

    + + GF2 has more reserved words than GF 1.2. When old files are read, a preprocessor replaces every identifier that has the shape of a new reserved word with a variant where the last letter is replaced by Z, e.g. @@ -311,6 +317,10 @@ compare the modification times of each gf and gfc file:

  • if gfc is later, just read in the module +Inside the GF shell, also time stamps of modules read into memory are +taken into account. Thus a module need not be read from a file if the +module is in the memory and the file has not been modified. + -- cgit v1.2.3