hallgren
8039633528
Fixed a problem with minibar when invoked from gfse or the syntax editor
...
Minibar needs js/langcode.js now, so need to include it in gfse/index.html
and syntax-exitor/editor.html too.
2015-05-21 08:00:49 +00:00
john.j.camilleri
bce1dff728
Syntax editor: minor CSS fix
2013-08-13 09:30:13 +00:00
john.j.camilleri
99cfb34639
RGL Browser: now includes Syntax Editor tab!
2013-07-25 07:36:34 +00:00
john.j.camilleri
51ece66688
Syntax editor: minor CSS tweak to resemble Minibar more
2013-06-13 07:34:16 +00:00
john.j.camilleri
c505747492
Syntax editor: AST string always shown, remove export button
2013-06-13 07:26:10 +00:00
hallgren
d35790e656
GF cloud: work on syntax editor integration
...
+ The syntax editor is now accessible from the Simple Translaton Tool.
+ The minibar now automatically provides access to the syntax editor (provided
the necessary JavaScript files and style sheets have been loaded).
+ Preparations for making the syntax editor accessible from the grammar editor.
2013-04-12 18:29:15 +00:00
hallgren
1d0f9372f4
syntax editor: fix references to global object 'server'
2013-04-12 17:50:44 +00:00
hallgren
eb941d6eac
minibar/syntax editor integration fixes
...
When starting from the minibar, the selected set of target languages is now
preserved when switching back and forth.
2013-04-12 14:30:27 +00:00
hallgren
3c244ff27f
minibar/syntax editor integration improvements
...
Work in progress on preserving the start category and selected target languages
when switching between the minibar and the syntax editor.
2013-04-04 14:04:31 +00:00
john.j.camilleri
b8e3fe7bc0
Syntax editor: initial support for string literals
...
Also a bug fix when switching to editor, although this still messes up
when using the letters grammar.
Also updated readme with options, and some style improvements.
2013-01-11 15:33:17 +00:00
john.j.camilleri
be5a313372
Syntax editor: add tooltips to buttons
2013-01-11 12:45:24 +00:00
john.j.camilleri
2623925e67
Syntax editor: unwrap feature
2012-12-11 15:09:16 +00:00
john.j.camilleri
6ef74e13d6
Syntax editor: link to about page
2012-12-11 09:48:44 +00:00
john.j.camilleri
ba3a497e41
Syntax editor: add about.html (and a Makefile for generating it)
2012-12-11 09:42:57 +00:00
john.j.camilleri
953b6b573a
Syntax editor: change startcat when wrapping top node
2012-12-07 15:32:31 +00:00
john.j.camilleri
904e8029fe
Syntax editor: various small improvements...
...
- separate tree edit buttons from option buttons
- fix bug when wrapping on freshly imported ast
- add interface for import & export of ast
- cleaner internal implementation of Editor.add_refinement
- small style updates
2012-12-07 12:55:17 +00:00
john.j.camilleri
32f085a4b5
Syntax editor: wrap now handles multiple possible positions for subtree
2012-12-04 15:45:41 +00:00
john.j.camilleri
314052f8d3
Syntax editor: add wrap feature
2012-12-03 14:02:47 +00:00
john.j.camilleri
0ac61fefba
Syntax editor: internal optimizations by pre-computing certain stuff
2012-11-30 15:08:46 +00:00
john.j.camilleri
58c3e3db85
Syntax editor: in-place replacement of functions
...
When at a non-leaf node, refinements with identical type signatures
are highlighting and can re placed without destroying the children.
If not, the refinement is greyed and the user is asked to clear
the current subtree first if they wish to replace it.
This aspect of the UI should be polished, but at least it is obvious.
Also, some substantial optimizations can still be made to cache
the processed type signatures (which determine what can be replaced
in-place)
2012-11-30 10:56:42 +00:00
john.j.camilleri
8cefec807a
Syntax editor: internal improvements. re-introduce initialize_from function
2012-11-29 15:40:18 +00:00
john.j.camilleri
59b9676fd1
Syntax editor; add new helper for parsing type signatures (not complete)
2012-11-27 12:00:41 +00:00
john.j.camilleri
e9e29aab67
Syntax editor: add options for GM in editor_online.js
2012-11-27 11:21:28 +00:00
john.j.camilleri
45179a580a
Syntax editor: avoid server calls for each refinement by using cached data
2012-11-27 11:19:12 +00:00
john.j.camilleri
b3c1177f9e
Syntax editor: improvements and fixes with grammar manager
2012-11-27 10:09:40 +00:00
john.j.camilleri
d9867893f8
Syntax editor: now uses common GrammarManager object
2012-11-23 15:03:36 +00:00
hallgren
9e430184ba
syntax editor + minibar: fix bug with repeated switching back and forth
...
By avoiding "this" in callback functions, the code can be kept cleaner.
2012-11-23 13:15:16 +00:00
john.j.camilleri
ee2f0a7487
Syntax editor: return to editor after having switched to minibar
2012-11-23 08:25:00 +00:00
hallgren
24bf1f0d0e
minibar: can now switch back to the minibar after switching to the syntax editor
...
This is done by including a lin_action when starting the syntax editor from
the minibar.
Also: added some minibar options in the syntax editor for consistency...
2012-11-22 16:42:39 +00:00
john.j.camilleri
bac6b7fe64
Syntax editor: can now load minibar (in-place) from a linearised tree
2012-11-22 12:45:20 +00:00
hallgren
e7b14316dd
minibar+syntax editor integration, work in progress 2
...
+ Transfer current astract syntax tree when activating the syntax editor
from the minibar.
+ Add options to start the minibar with given input. You need to include
the current grammar url, the current language and the input, like this:
initial_grammar: "/grammars/Foods.pgf",
initial: { from: "FoodsEng", input:["that","fish","is","fresh"]}
+ Fix a style sheet clash.
2012-11-21 17:13:21 +00:00
john.j.camilleri
381dc3900c
Syntax editor: start with initial AST
...
Note that the argument has been renamed to initial.abstr
(Where abstr means an abstract syntax tree in string form, NOT an AST object)
2012-11-21 15:24:44 +00:00
hallgren
8bd58a0297
minibar+syntax editor integration, work in progress
2012-11-21 15:07:59 +00:00
john.j.camilleri
051b7b0d21
Syntax editor: start with initial grammar, startcat, to: languages
2012-11-21 11:22:35 +00:00
john.j.camilleri
09c4f8410e
Syntax editor: update to use common js files
2012-11-20 13:56:56 +00:00
john.j.camilleri
27beb9a3f8
Syntax editor: random generation of trees (and subtrees!)
2012-11-20 09:36:50 +00:00
john.j.camilleri
3e5dac8ed4
Syntax editor: work on importing AST as string (eg for generate random)
...
But it's still not complete. Need an efficient way of getting the cat info to accompany funs.
2012-11-16 14:35:37 +00:00
john.j.camilleri
67ca0a1eae
Syntax editor: select subset of available languages
...
Also added a basic readme file with a list of todo's
2012-11-16 09:33:55 +00:00
john.j.camilleri
f815b2850b
Syntax editor: jump to next hole in tree
2012-11-15 15:38:17 +00:00
john.j.camilleri
dc0f333fec
Syntax editor: fix bug in Firefox, Seamonkey
2012-11-15 12:40:14 +00:00
john.j.camilleri
5c8c1f768f
Add first demo of new syntax editor
...
As part of the GF cloud stuff, it can be accessed from
http://cloud.grammaticalframework.org/syntax-editor/editor.html
2012-11-13 15:14:49 +00:00