mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-27 03:38:55 -06:00
gfse: fix missing startcat flag bug + documentation updates
This commit is contained in:
@@ -12,8 +12,8 @@
|
|||||||
+ Allow definitions to be reordered
|
+ Allow definitions to be reordered
|
||||||
|
|
||||||
+ 1. possibility to compile the grammar set, returning a URL to a translator app
|
+ 1. possibility to compile the grammar set, returning a URL to a translator app
|
||||||
- 2. possibility to import modules - both resource libraries and user's own
|
+ 2a. possibility to import modules - resource libraries
|
||||||
auxiliaries
|
- 2b. possibility to import modules - user's own auxiliaries
|
||||||
- 3. possibility to upload own modules
|
- 3. possibility to upload own modules
|
||||||
+ 4. access to the created files in an on-line shell (making testing possible)
|
+ 4. access to the created files in an on-line shell (making testing possible)
|
||||||
- 5. rule-to-rule type checking and guidance (e.g. with library oper
|
- 5. rule-to-rule type checking and guidance (e.g. with library oper
|
||||||
@@ -27,5 +27,5 @@
|
|||||||
- Bug! After adding a 2nd def of a fun with a different type and then deleting
|
- Bug! After adding a 2nd def of a fun with a different type and then deleting
|
||||||
the old fun, the corresponding lin will have the wrong lhs.
|
the old fun, the corresponding lin will have the wrong lhs.
|
||||||
|
|
||||||
- Bug! The startcat menu shows the first category by default, but the startcat
|
+ Bug! The startcat menu shows the first category by default, but the startcat
|
||||||
flag is actually not set until a selection is made from the menu.
|
flag is actually not set until a selection is made from the menu.
|
||||||
@@ -109,7 +109,10 @@ Error checks:
|
|||||||
|
|
||||||
At the moment, concrete syntax definitions are limited to
|
At the moment, concrete syntax definitions are limited to
|
||||||
<ul>
|
<ul>
|
||||||
<li><em>parameter types</em>,
|
<li>opening the Resource Grammar Library modules
|
||||||
|
<code>Syntax</code><var>L</var> and <code>Paradigms</code><var>L</var>
|
||||||
|
for the appropriate language <var>L</var>,
|
||||||
|
<li><em>parameter type definitions</em>,
|
||||||
<var>P</var> = <var>C<sub>1</sub></var> | ... |<var>C<sub>n</sub></var>,
|
<var>P</var> = <var>C<sub>1</sub></var> | ... |<var>C<sub>n</sub></var>,
|
||||||
<li><em>linearization types</em> for the categories in the abstract syntax,
|
<li><em>linearization types</em> for the categories in the abstract syntax,
|
||||||
<li><em>operation definitions</em>, <var>op</var> = <var>expr</var>,
|
<li><em>operation definitions</em>, <var>op</var> = <var>expr</var>,
|
||||||
@@ -150,8 +153,7 @@ web browser, but let the editor communicate with a server running GF.
|
|||||||
<p>
|
<p>
|
||||||
By developing a GF server with an appropriate API, it should
|
By developing a GF server with an appropriate API, it should
|
||||||
be possible to extend the editor to support a larger fragment of GF,
|
be possible to extend the editor to support a larger fragment of GF,
|
||||||
to do proper error checking, and to allow grammars to be tested in the GF
|
to do proper error checking.
|
||||||
shell or the minibar.
|
|
||||||
<p>
|
<p>
|
||||||
Grammars are currently stored locally in the browser, but a future version
|
Grammars are currently stored locally in the browser, but a future version
|
||||||
could allow grammars to be stored "in the cloud", allowing the same grammars
|
could allow grammars to be stored "in the cloud", allowing the same grammars
|
||||||
@@ -159,7 +161,7 @@ to be accessed from multiple devices.
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<div class=modtime><small>
|
<div class=modtime><small>
|
||||||
<!-- hhmts start --> Last modified: Wed Feb 23 17:37:16 CET 2011 <!-- hhmts end -->
|
<!-- hhmts start --> Last modified: Mon Feb 28 17:44:19 CET 2011 <!-- hhmts end -->
|
||||||
</small></div>
|
</small></div>
|
||||||
<address>
|
<address>
|
||||||
<a href="http://www.cse.chalmers.se/~hallgren/">TH</a>
|
<a href="http://www.cse.chalmers.se/~hallgren/">TH</a>
|
||||||
|
|||||||
@@ -151,7 +151,8 @@ function show_grammar(g) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function show_abstract(g) {
|
function show_abstract(g) {
|
||||||
var startcat= g.abstract.cats.length==1 ? g.abstract.cats[0] : g.abstract.startcat;
|
// var startcat= g.abstract.cats.length==1 ? g.abstract.cats[0] : g.abstract.startcat;
|
||||||
|
var startcat= g.abstract.startcat || g.abstract.cats[0];
|
||||||
return "abstract "+g.basename+" = {\n\n"
|
return "abstract "+g.basename+" = {\n\n"
|
||||||
+"flags coding = utf8 ;\n\n"
|
+"flags coding = utf8 ;\n\n"
|
||||||
+show_startcat(startcat)
|
+show_startcat(startcat)
|
||||||
|
|||||||
Reference in New Issue
Block a user