1
0
forked from GitHub/gf-core
Commit Graph

12 Commits

Author SHA1 Message Date
john.j.camilleri
0937c4b34f Syntax editor: minor CSS tweak to resemble Minibar more 2013-06-13 07:34:16 +00:00
john.j.camilleri
8b46a3bbae Syntax editor: AST string always shown, remove export button 2013-06-13 07:26:10 +00:00
hallgren
4ec1db9065 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
john.j.camilleri
776539803d 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
36d2f165ea Syntax editor: change startcat when wrapping top node 2012-12-07 15:32:31 +00:00
john.j.camilleri
fe2fb1c51b 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
589e1e4f08 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
7fe922d5a6 Syntax editor: now uses common GrammarManager object 2012-11-23 15:03:36 +00:00
john.j.camilleri
8b813be742 Syntax editor: can now load minibar (in-place) from a linearised tree 2012-11-22 12:45:20 +00:00
hallgren
bd3b512074 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
hallgren
73a458dc66 minibar+syntax editor integration, work in progress 2012-11-21 15:07:59 +00:00
john.j.camilleri
bee1afd7b8 Syntax editor: update to use common js files 2012-11-20 13:56:56 +00:00