1
0
forked from GitHub/gf-core
Commit Graph

20 Commits

Author SHA1 Message Date
hallgren 8f82e71517 Example-based grammar writing: fix problems caused by the use of exprToAPI
The editor needs to keep track of both the raw term and the nice term returned
by exprToAPI. (Manually constructed linearization rules will now have the
raw term and can not be tested.)

Also replace metavariables in generalized terms with the apropriate parameter
from the linearization rule.

Also fix communication problems caused by inconsistent use of show/read vs
showExpr/readExpr.
2011-09-29 15:19:03 +00:00
hallgren 681b2c5501 gfse: work in progress on support for example-based grammar writing 2011-09-27 18:40:09 +00:00
hallgren 1de43118f9 gfse: add Extra and Lexicon to the list of resource modules that can be opened 2011-09-16 15:13:27 +00:00
hallgren 2848dc5c08 gfse: added grammar cloning 2011-09-13 15:19:16 +00:00
hallgren 1b386e01ba gfse: fix an issue with Webkit browers
For lin and lincats with empty RHSs, there was nothing to point to to make the
edit button (the "%" button) appear in browsers based on Webkit
(Safari, Chrome).
2011-08-17 15:41:57 +00:00
hallgren c78328fd86 gfse: some correctness checks for concrete syntax
The editor now calls the GF server to check the syntax of expressions that
are part of concrete syntax (except for parameter types).
This is currently done by using the cc command of the GF shell, which puts
some unnecessary restricitons on operation definitions...
2011-07-29 15:44:19 +00:00
hallgren 97d7bdd6c0 gfse: refactoring
Factor out functions that interface to the old cloud service (upload.cgi) 
from editor.js into cloud.js. Merge changes from editor2.js into editor.js and
factor out functions that interface to gf -server into clouds2.js.
2011-07-29 13:45:37 +00:00
hallgren cce6b793b1 gfse: various small improvements 2011-07-25 19:21:46 +00:00
hallgren 5f624dce85 gfse: grammars in the cloud, still primitve, but good enough to be installed on the server, I think 2011-07-07 16:57:59 +00:00
hallgren 8e47fa6d88 gfse: grammars in the cloud, work in progress
Cloud merging: when sharing grammars between two devices that previously each
had separate grammar directoies on the server, clean up one of the directories
and make it a symbolic link to the other.
2011-07-07 13:30:56 +00:00
hallgren 7b8828ae0a gfse: grammars in the cloud, work in progress 2011-07-06 16:55:42 +00:00
hallgren e4e5ca23d3 gfse: initial support for grammars in the cloud
This lets the user access the same set of grammars from multiple devices.

Sharing grammars between multiple users is possible but discouraged at the
moment. There is no version handling, so concurrent editing of the same grammar
by different users might result in one user overwriting changes made by
another user. (The same goes for cuncurrent editing on multiple devices by
a single user, of course.)
2011-06-08 15:29:50 +00:00
hallgren ae83ed677c gfse: fix a problem in browsers where "class" is a reserved keyword 2011-05-07 17:36:49 +00:00
hallgren 7f91547576 gfse: you can now add concrete syntax for arbitrary languages
Before, you had to pick a language from a list of supported languages, but now
you can also pick Other and change the language code afterwards.
2011-05-06 15:24:45 +00:00
hallgren ac54480e82 gfse: use "gf -server" mode instead of upload.cgi
Work in progress on making the online grammar editor use the new "gf -server"
mode instead of the old upload.cgi script. A first benefit is that the
editor now calls the server to check the syntax of lin & lincat definitions.
(But the links to minibar/gfshell/quiz are not available at the moment.)
2011-04-13 15:30:42 +00:00
hallgren f30e07f5f8 gfse: create a new concrete syntax by copying an existing one
When adding a new concrete syntax to a grammar, the currently open concrete
syntax will be copied. If the abstract syntax is currently open, the new
concrete syntax will start out empty.
2011-03-07 17:52:15 +00:00
hallgren 2c6c85974e gfse: minor layout/formatting variation 2011-03-06 10:19:17 +00:00
hallgren 10f2f3e7d7 gfse: support for opening RGL modules 2011-02-28 14:18:20 +00:00
hallgren b2917c5652 gfse: allow definitions to be reordered by drad-and-drop 2011-02-22 16:04:49 +00:00
hallgren 60980e40e4 Adding the prototype GF editor for simple multilingual grammars 2011-02-17 14:38:46 +00:00