summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2012-11-27Syntax editor; add new helper for parsing type signatures (not complete)john.j.camilleri
2012-11-27Syntax editor: add options for GM in editor_online.jsjohn.j.camilleri
2012-11-27Syntax editor: avoid server calls for each refinement by using cached datajohn.j.camilleri
2012-11-27Syntax editor: improvements and fixes with grammar managerjohn.j.camilleri
2012-11-26gfse: add Prelude to the list of RGL modules that can be openedhallgren
2012-11-26gfse: more readable layout for not so simple grammars + bug fixhallgren
To make definitions that span multiple lines more readable in guided mode, preserve line breaks and indentation when lin and oper definitions are displayed and edited in guided mode. Bug fix: moving the cursor by clicking and selecting text by dragging did not work in textareas and input fields, because those mouse event were intercepted by the sort-by-drag-and-drop handler.
2012-11-23gf -server + gfse: show modification time of public grammarshallgren
2012-11-23gf -server: support overloaded opers in gfsehallgren
2012-11-23gfse: use POST requests when parsing grammar modules after editing as texthallgren
instead of GET, to avoid the Apache httpd URI length limitation. This means that gfse can no longer use JSONP when parsing grammars, so it has to be located on the same host as the cloud service. Also clean away trailing white space in support.js.
2012-11-23Fix a prededence bug in GF grammar pretty printerhallgren
The pretty printer produced mkDet pre {"a"; "an" / vowel} Sg which is not accepted by the parser. The parser assigns pre { ... }, to prededence level 4, and this is now reflected in the pretty printer, so it prints mkDet (pre {"a"; "an" / vowel}) Sg (This caused a problem in GFSE since it parsers pretty printed grammars...)
2012-11-23minibar_online.js: updated to launch Editor using a GrammarManager objectjohn.j.camilleri
2012-11-23Syntax editor: now uses common GrammarManager objectjohn.j.camilleri
2012-11-23syntax editor + minibar: fix bug with repeated switching back and forthhallgren
By avoiding "this" in callback functions, the code can be kept cleaner.
2012-11-23Syntax editor: return to editor after having switched to minibarjohn.j.camilleri
2012-11-23Minibar: call abstract_action with 'this' bound to minibar objectjohn.j.camilleri
2012-11-23Minibar: add show/hide functionsjohn.j.camilleri
2012-11-22minibar: can now switch back to the minibar after switching to the syntax editorhallgren
This is done by including a lin_action when starting the syntax editor from the minibar. Also: added some minibar options in the syntax editor for consistency...
2012-11-22PGFService.hs: fix type error caused by change to PGF.graphvizParseTreehallgren
Note that some of the graphviz functions have backwards incompatible changes that might also affect other clients of the PGF run-time library. Also added graphvizDefaults and export it together with GraphvizOptions from the PGF run-time library.
2012-11-22Syntax editor: can now load minibar (in-place) from a linearised treejohn.j.camilleri
2012-11-22better visualization of parse treespeter.ljunglof
2012-11-22Added C compilation notes for Mac OSXpeter.ljunglof
2012-11-21minibar: fix bug introduced in previous updatehallgren
It could case JavaScript error ReferenceError: initial_grammar is not defined
2012-11-21minibar+syntax editor integration, work in progress 2hallgren
+ 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-21Syntax editor: start with initial ASTjohn.j.camilleri
Note that the argument has been renamed to initial.abstr (Where abstr means an abstract syntax tree in string form, NOT an AST object)
2012-11-21minibar+syntax editor integration, work in progresshallgren
2012-11-21Syntax editor: start with initial grammar, startcat, to: languagesjohn.j.camilleri
2012-11-21support.js: elem() returns false when as is undefinedjohn.j.camilleri
2012-11-20gfse: remove obsolete fileshallgren
2012-11-20GF cloud: move gf-web-api-examples.html out of minibar directoryhallgren
2012-11-20Syntax editor: update to use common js filesjohn.j.camilleri
2012-11-20GF cloud: move support.js and pgf_online.jshallgren
Created the folder js and moved minibar/support.js and minibar/pgf_online.js there, to emphasize their status as app independent support libraries. There are probably more files that should be moved here. The cloud apps have been updated, externally hosted apps that link directly to our server need to be updated too.
2012-11-20Syntax editor: random generation of trees (and subtrees!)john.j.camilleri
2012-11-19remove the duplicated definition of PgfProductionIdx in parser.ckr.angelov
2012-11-17GF web service API examples: update examples of the browse commandhallgren
Also some style tweaks.
2012-11-17PGF service: command=browse&format=json returns info on all cats and funshallgren
The browse command used to have a required parameter id=... and it returned info on the given identifier only. Now, if format=json, the id=... parameter can be omitted to get info on all identifiers at the same time. The returned JSON structure in this case is {cats:{...},funs:{...}} where the inner objects contain one field per category and function, respectively, in the same format as when you request info on one category or function.
2012-11-17GF web service API examples: added the "abstrjson" commandhallgren
It converts an abstract syntax tree (represented as a string) to a JSON structure. Also some HTML code cleanup.
2012-11-16Syntax editor: work on importing AST as string (eg for generate random)john.j.camilleri
But it's still not complete. Need an efficient way of getting the cat info to accompany funs.
2012-11-16bugfix for the building of bottom-up filter in the C runtimekr.angelov
2012-11-16new-comp: rewrite f (x|y) into (f x|f y)hallgren
With this change, all languages in molto/mgl/mixture except German and Polish can be compiled.
2012-11-16Syntax editor: select subset of available languagesjohn.j.camilleri
Also added a basic readme file with a list of todo's
2012-11-15Syntax editor: jump to next hole in treejohn.j.camilleri
2012-11-15Syntax editor: fix bug in Firefox, Seamonkeyjohn.j.camilleri
2012-11-14Add flag --document-root for user with gf --serverhallgren
This can make it easier to test cloud service updates before installing them.
2012-11-14GF usage message fixeshallgren
Change the command name from gfc to gf in the usage message header. Correct spelling of "overide" to "override" in -gf-lib-path description.
2012-11-14revised heuristic in the statistical parserkr.angelov
2012-11-13Add first demo of new syntax editorjohn.j.camilleri
As part of the GF cloud stuff, it can be accessed from http://cloud.grammaticalframework.org/syntax-editor/editor.html
2012-11-13Adding a new experimental partial evalutatorhallgren
GF.Compile.Compute.ConcreteNew + two new modules contain a new partial evaluator intended to solve some performance problems with the old partial evalutator in GF.Compile.Compute.ConcreteLazy. It has been around for a while, but is now complete enough to compile the RGL and the Phrasebook. The old partial evaluator is still used by default. The new one can be activated in two ways: - by using the command line option -new-comp when invoking GF. - by using cabal configure -fnew-comp to make -new-comp the default. In this case you can also use the command line option -old-comp to revert to the old partial evaluator. In the GF shell, the cc command uses the old evaluator regardless of -new-comp for now, but you can use "cc -new ..." to invoke the new evaluator. With -new-comp, computations happen in GF.Compile.GeneratePMCFG instead of GF.Compile.Optimize. This is implemented by testing the flag optNewComp in both modules, to omit calls to the old partial evaluator from GF.Compile.Optimize and add calls to the new partial evaluator in GF.Compile.GeneratePMCFG. This also means that -new-comp effectively implies -noexpand. In GF.Compile.CheckGrammar, there is a check that restricted inheritance is used correctly. However, when -noexpand is used, this check causes unexpected errors, so it has been converted to generate warnings, for now. -new-comp no longer enables the new type checker in GF.Compile.Typeckeck.ConcreteNew. The GF version number has been bumped to 3.3.10-darcs
2012-11-13bugfix in the statistical parserkr.angelov
2012-11-12two simple heuristics which speed up the statistical parser more than seven ↵kr.angelov
times.
2012-11-12a simple refactoring in the statistical parserkr.angelov