mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
minibar: abstract syntax trees are now shown with or without category names
Function names are always shown.
This commit is contained in:
@@ -228,14 +228,14 @@ Some implementation details:
|
|||||||
trees without function names. Click again to add function names.
|
trees without function names. Click again to add function names.
|
||||||
<li>[Added 2013-03-27] Click on a linearization to obtain a table with all
|
<li>[Added 2013-03-27] Click on a linearization to obtain a table with all
|
||||||
variants and forms. Click again to hide the table.
|
variants and forms. Click again to hide the table.
|
||||||
<li>[Added 2013-03-28] Abstract syntax tree visualizations: click once to
|
<li>[Added 2013-04-02] Abstract syntax tree visualizations: click once to
|
||||||
show abstract syntax trees without function names. Click again to add
|
show abstract syntax trees without category names. Click again to add
|
||||||
function names.
|
category names.
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<div class=modtime><small>
|
<div class=modtime><small>
|
||||||
<!-- hhmts start -->Last modified: Thu Mar 28 16:56:32 CET 2013 <!-- hhmts end -->
|
<!-- hhmts start -->Last modified: Tue Apr 2 13:55:59 CEST 2013 <!-- 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>
|
||||||
|
|||||||
@@ -213,22 +213,22 @@ Translations.prototype.show_groupedtranslations=function(translationsResult) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function tree_button(img_url) {
|
function tree_button(img_url,opt) {
|
||||||
var imgs=[tree_icon,img_url+"&nofun=true",img_url]
|
var imgs=[tree_icon,img_url+(opt||"&nofun=true"),img_url]
|
||||||
var current=0;
|
var current=0;
|
||||||
function cycle() {
|
function cycle() {
|
||||||
current++;
|
current++;
|
||||||
if(current>=imgs.length) current=0;
|
if(current>=imgs.length) current=0;
|
||||||
i.src=imgs[current]
|
i.src=imgs[current]
|
||||||
}
|
}
|
||||||
var i=button_img(tree_icon,cycle);
|
var i=button_img(tree_icon,cycle);
|
||||||
return i
|
return i
|
||||||
}
|
}
|
||||||
|
|
||||||
Translations.prototype.abstree_button=function(abs) {
|
Translations.prototype.abstree_button=function(abs) {
|
||||||
var f=this.options.tree_img_format;
|
var f=this.options.tree_img_format;
|
||||||
var img=this.server.current_grammar_url+"?command=abstrtree&format="+f+"&tree="+encodeURIComponent(abs)
|
var img=this.server.current_grammar_url+"?command=abstrtree&format="+f+"&tree="+encodeURIComponent(abs)
|
||||||
var btn=tree_button(img);
|
var btn=tree_button(img,"&nocat=true");
|
||||||
btn.title="Click to display abstract syntax tree"
|
btn.title="Click to display abstract syntax tree"
|
||||||
return btn
|
return btn
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user