From 7a69d9d5e5800a1d4e523b487bba3969e6f2a998 Mon Sep 17 00:00:00 2001 From: "john.j.camilleri" Date: Tue, 13 Nov 2012 15:14:49 +0000 Subject: [PATCH] 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 --- gf.cabal | 3 + src/www/index.html | 3 +- src/www/syntax-editor/editor.html | 43 ++++ src/www/syntax-editor/js/ast.js | 131 ++++++++++ src/www/syntax-editor/js/editor.js | 216 ++++++++++++++++ src/www/syntax-editor/js/editor_menu.js | 153 +++++++++++ src/www/syntax-editor/js/pgf_online.js | 80 ++++++ src/www/syntax-editor/js/support.js | 329 ++++++++++++++++++++++++ src/www/syntax-editor/ui/style.css | 64 +++++ 9 files changed, 1021 insertions(+), 1 deletion(-) create mode 100644 src/www/syntax-editor/editor.html create mode 100644 src/www/syntax-editor/js/ast.js create mode 100644 src/www/syntax-editor/js/editor.js create mode 100644 src/www/syntax-editor/js/editor_menu.js create mode 100644 src/www/syntax-editor/js/pgf_online.js create mode 100644 src/www/syntax-editor/js/support.js create mode 100644 src/www/syntax-editor/ui/style.css diff --git a/gf.cabal b/gf.cabal index 52e785430..c979cdb88 100644 --- a/gf.cabal +++ b/gf.cabal @@ -24,6 +24,9 @@ data-files: www/*.html www/minibar/*.css www/minibar/*.js www/minibar/*.png + www/syntax-editor/*.html + www/syntax-editor/ui/*.css + www/syntax-editor/js/*.js www/TransQuiz/*.html www/TransQuiz/*.css www/TransQuiz/*.js diff --git a/src/www/index.html b/src/www/index.html index df50c4dbe..c1e62bf45 100644 --- a/src/www/index.html +++ b/src/www/index.html @@ -13,6 +13,7 @@