mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
gfse: fix bugs and typos
This commit is contained in:
@@ -111,7 +111,7 @@ Error checks:
|
||||
At the moment, the concrete syntax for a language <var>L</var> is limited to
|
||||
<ul>
|
||||
<li>opening the Resource Grammar Library modules
|
||||
<code>Syntax</code><var>L</var> and <code>Paradigms</code><var>L</var>,
|
||||
<code>Syntax</code><var>L</var>, <code>Paradigms</code><var>L</var>,
|
||||
<code>Lexicon</code><var>L</var> and <code>Extra</code><var>L</var>,
|
||||
<li><em>linearization types</em> for the categories in the abstract syntax,
|
||||
<li><em>linearizations</em> for the functions in the abstract syntax,
|
||||
@@ -234,7 +234,7 @@ suitable for multiple users developing a grammar in collaboration.
|
||||
|
||||
<hr>
|
||||
<div class=modtime><small>
|
||||
<!-- hhmts start --> Last modified: Fri Oct 7 14:06:14 CEST 2011 <!-- hhmts end -->
|
||||
<!-- hhmts start --> Last modified: Fri Nov 25 12:44:33 CET 2011 <!-- hhmts end -->
|
||||
</small></div>
|
||||
<address>
|
||||
<a href="http://www.cse.chalmers.se/~hallgren/">TH</a>
|
||||
|
||||
@@ -52,6 +52,9 @@ function ask_possibilities(g,ci) {
|
||||
reload_grammar(g);
|
||||
}
|
||||
var exci=conc_index(g,conc.example_lang);
|
||||
if(!conc.example_lang || !exci)
|
||||
conc.example_lang=g.concretes[ci==0 ? 1 : 0].langcode;
|
||||
var exci=conc_index(g,conc.example_lang);
|
||||
exb_call(g,ci,"possibilities",{example_state:exb_state(g,exci)},show_poss)
|
||||
}
|
||||
|
||||
@@ -67,7 +70,9 @@ function exb_extra(g,ci) {
|
||||
}
|
||||
|
||||
function exblangmenu() {
|
||||
function opt(conc) { return option(conc.langcode,conc.langcode); }
|
||||
function opt(conc) {
|
||||
return option(concname(conc.langcode),conc.langcode);
|
||||
}
|
||||
function skip_target(c) { return c.langcode!=conc.langcode; }
|
||||
var m =node("select",{},map(opt,filter(skip_target,g.concretes)));
|
||||
if(conc.example_lang) m.value=conc.example_lang;
|
||||
@@ -93,7 +98,7 @@ function exb_extra(g,ci) {
|
||||
var why= g.concretes.length>1
|
||||
? " ("+concname(conc.langcode)+" is not supported yet)"
|
||||
: " (Add another language to take examples from first.)"
|
||||
return indent([unimportant("Example-based grammar editing: "), sb,
|
||||
return indent([unimportant("Example-based editing: "), sb,
|
||||
unimportant(why)])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user