diff options
| author | hallgren <hallgren@chalmers.se> | 2012-02-17 16:07:28 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2012-02-17 16:07:28 +0000 |
| commit | 21f657a64a8e286fd779a0fa4aae799342a0fcce (patch) | |
| tree | 97796ea7036afd8384fb504580732fa1e2d1c1ea /src/www/gfse/editor.js | |
| parent | f4466495506b32880c169f3326eacccf771527e3 (diff) | |
gfse: when uploading/compiling a grammar, automatically upload inherited grammars as well
Diffstat (limited to 'src/www/gfse/editor.js')
| -rw-r--r-- | src/www/gfse/editor.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/www/gfse/editor.js b/src/www/gfse/editor.js index 940c3d54b..b630f69ab 100644 --- a/src/www/gfse/editor.js +++ b/src/www/gfse/editor.js @@ -1015,6 +1015,12 @@ function defined_funs(g) { return all_defined_funs(g,inherited_gramamrs(g)) } function inherited_cats(g) {return all_inherited_cats(inherited_grammars(g),{})} function inherited_funs(g) {return all_inherited_funs(inherited_grammars(g),{})} +function upload(g,cont) { + var gs=inherited_grammars(g); + gs.push(g); + upload_grammars(gs,cont); +} + // inherited_grammars :: Grammar -> [Grammar] function inherited_grammars(g) { // Load the available grammars once |
