From b8e3fe7bc099d3ee09f1c5dfe05fab1fd73afed1 Mon Sep 17 00:00:00 2001 From: "john.j.camilleri" Date: Fri, 11 Jan 2013 15:33:17 +0000 Subject: 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. --- src/www/syntax-editor/about.html | 113 ++++++++++++++++++++++----------------- 1 file changed, 65 insertions(+), 48 deletions(-) (limited to 'src/www/syntax-editor/about.html') diff --git a/src/www/syntax-editor/about.html b/src/www/syntax-editor/about.html index a05d1dd20..8f9e561f1 100644 --- a/src/www/syntax-editor/about.html +++ b/src/www/syntax-editor/about.html @@ -6,83 +6,100 @@ About the syntax editor - +

GF web-based syntax editor

-

John J. Camilleri
December 2012

-

An improved version of the old syntax editor.

+

John J. Camilleri
January 2013

+

A tool for building and manipulating abstract syntax trees in GF. This is meant as improved replacement of the old syntax editor.

Example usage

-

See editor.html and editor_online.js.

+

If you want to use the tool in your own application, everything you need in the source files editor.html and editor_online.js. Contact the GF developer mailing list if you have any problems.

Available startup options

+

Grammar Manager

- + - - - + + + - - - + + + - - - + + + + + + + + + + +
OptionsDescriptionDefaultOptionsDescriptionDefault
target - -"editor"initial.grammarInitial grammar URL, e.g. "http://localhost:41296/grammars/Foods.pgf"
initial.grammarInitial grammar URL, e.g. "http://localhost:41296/grammars/Foods.pgf" - -initial.startcatInitial startcat(grammar default)
initial.languagesInitial linearisation languages, e.g. ["Eng","Swe","Mlt"](all)
+

Editor

+ + + + + + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + + + + + +
OptionsDescriptionDefault
initial.startcatInitial startcat(grammar default)target"editor"
initial.languagesInitial linearisation languages, e.g. ["Eng","Swe","Mlt"](all)initial.abstrInitial abstract tree (as string), e.g. "Pred (That Fish) Expensive"
initial.abstrInitial abstract tree (as string), e.g. "Pred (That Fish) Expensive" - -lin_actionFunction called when clicking on the language button beside each linearisation.
show_grammar_menuShow grammar menu?Truelin_action_tooltipTooltip for the button beside each linearisation.
show_startcat_menuShow startcat menu?Trueshow_grammar_menuShow grammar menu?True
show_to_menuShow languages menu?Trueshow_startcat_menuShow startcat menu?True
show_random_buttonShow random button?Trueshow_to_menuShow languages menu?True
show_importShow import button/panel?Trueshow_random_buttonShow random button?True
show_exportShow export button?Trueshow_importShow import button/panel?True
show_exportShow export button?True
@@ -98,7 +115,7 @@ About the syntax editor
  • Usage of printnames
  • Enter string/float/int literals
  • more prominence to Disamb-linearizations
  • -
  • show all resulting linearizations/variants
  • +
  • show all resulting linearization variants
  • undo/redo (or back/forward) navigation
  • structure fridge magnets more (eg newline before the magnet whose first letter is different)
  • -- cgit v1.2.3