Files
gf-core/src/www/syntax-editor/README.md
john.j.camilleri 03a64e2ec7 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

1.3 KiB

GF web-based syntax editor

John J. Camilleri
November 2012

An improved version of the old syntax editor.

Notes

Tested with latest Chrome and Firefox.

TODO

  • Clicking on tokens to select tree node
  • Use local caching
  • Enter string/float/int literals
  • UI issue with DisambPhrasebookEng
  • more prominence to Disamb-linearizations
  • ambiguity: (optionally) parse all the resulting linearizations/variants and point out those which are ambiguous
  • random-generate a non-empty tree as a starting point
  • try to retain subtree when replacing node
  • add undo/redo (or back/forward) navigation
  • structure the set of fridge magnets some more. Even though they are alphabetically sorted, it's difficult to find the one that I want, maybe put a newline before the magnet whose first letter is different with respect to the previous magnet
  • The formal-looking funs and cats are not linked/aligned to the linearizations. Maybe a possible UI could be where the user is clicking on the linearization (in a chosen language) and the tree is drawn under it (from top to bottom, not from left to right as currently). So that the alignment of words to functions is always explicit. But maybe this is not doable.