summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2012-04-02simple cleanup in the robust parserkr.angelov
2012-04-02minibar: better implementation of word replacementhallgren
Instead of trying to reconstruct the abstract tree from the bracketed string, use the node numbers (the field called "fid") to identify which node in the abstact syntax tree a word in the bracketed string corresponds to.
2012-04-02gf-server.cabal: mtl is needed to build pgf-server nowhallgren
2012-04-02PGFService.hs: add web API function "abstrjson"hallgren
Abstract syntax trees are represented as strings in the web API. To make them easier to manipulate in JavaScript, the new function converts them to JSON. To support structural editing, the nodes are numbered in the same way as in the bracketed string created when linearizing an abstract syntax tree. Example: "Pred (That Fish) Fresh" is converted to {fun:"Pred",fid:3, children:[{fun:"That",fid:1, children:[{fun:"Fish",fid:0}]}, {fun:"Fresh",fid:2}]}
2012-04-01support.js: add an implementation of Array.isArray for older browsers that ↵hallgren
lack it
2012-03-29gfse&minibar: work in progress on grammar extension fromminibarhallgren
2012-03-29gfse: show an informative error message in browsers that lack support for ↵hallgren
localStorage
2012-03-26Workaround for bug in ghc-7.2.2hallgren
An apparent bug in ghc-7.2.2 causes the type Value to be exported from PGF.Data. Workaround: restrict the imports from PGF.Data in GF.Command.Abstract and GF.Compile.GeneratePMCFG to avoid the clash with locally defined type Value. (ghc-7.0.4 and ghc-7.4.1 appear to be free from this bug.)
2012-03-26compiler/GF/Text/Coding.hs: fix build failure against ghc-7.2Sergei Trofimovich
2012-03-26Fix List.foldl / Map.foldl ambiguositySergei Trofimovich
Fixes the following error: src/runtime/haskell/PGF/Expr.hs:111:14: Ambiguous occurrence `foldl' It could refer to either `List.foldl', imported from `Data.List' at src/runtime/haskell/PGF/Expr.hs:27:1-24 (and originally defined in `GHC.List') or `Map.foldl', imported from `Data.Map' at src/runtime/haskell/PGF/Expr.hs:28:1-40
2012-03-26minibar: support for adding grammars from several servers to the grammar menuhallgren
You can also add grammars from several directories on the same server of course. The included minibar configuration file adds the user's own grammars from the grammar editor.
2012-03-26gfse: enable word replacement in minibar when activated from the editorhallgren
2012-03-26gfse&minibar: fix bug caused by function name clashhallgren
+ Function div_id was defined in both editor.js and support.js. Solution: moved the more general version from editor.js to support.js. + Function div_class was defined in both editor.js and support.js. Solution: resolv incompatibility with an argument type test and put the generalized function in support.js.
2012-03-22minibar: word-for-word replacement fixeshallgren
Check that the reconstructed abstract syntax tree is type correct before enabling word-for-word replacement. Show an error message if word replacement nevertheless fails.
2012-03-22pgf_online.js: error callbackshallgren
To enable customized error handling, the methods in the pgf_online objects and the AJAX server call functions in support.js accept an error callback function as an extra argument, in addition to the callback (continuation) for normal results.
2012-03-19minibar: word-for-word replacement fixhallgren
Turn off the highlighting that indicates that word-for-word replacement is enabled when it is no longer available (e.g if a word is deleted and there no longer is a complete parse).
2012-03-19minibar: fix for recently introduced bug affacting Webkit browsershallgren
It seems that in Gecko browsers, the effect of "with(x) stmts" reaches inside the bodies of local functions in stmts, but in Webkit browers it does not.
2012-03-19minibar: don't try to select the most recently used grammar if it isn't in ↵hallgren
the current grammar list
2012-03-18minibar: automatically select the most recently used grammar when returning ↵hallgren
to the minibar
2012-03-18PGF run-time library: function names in BracketedString (experimental)hallgren
+ Make room for function names in the BracketedString data structure. + Fill in function names when linearizing an abstract syntax tree to a BracketedString. + Fill in wildCId when it is not obvious what the function is. + Function bracketedLinearize: for compatibility with the other linearization functions, return Leaf "" instead of error "cannot linearize". + Export flattenBracketedString from module PGF. + PGFServce: make function names available in the JSON representation of BracketedString.
2012-03-18minibar: word-for-word replacement (experimental)hallgren
The new functionality also needs some new PGF service functionality, which will be provided in a separate patch.
2012-03-17Cloud service start page layout fix for small screenshallgren
2012-03-16PGFService.hs: command=browse can now produce output in JSON format.hallgren
To get JSON output, add the parameter format=json. The JSON structure contains the output from the function PGF.browse. The default is format=html for backwards compatibility.
2012-03-12libpgf: a new implementation for literals which also allows custom literals. ↵kr.angelov
the same mechanism is now used for the metavariables
2012-03-09libpgf: added simple lexerkr.angelov
2012-03-08minibar: add an option to make it easy to select png or svg outputhallgren
for abstract synax trees, parse trees and word alignment diagrams.
2012-03-08PGFService.hs: add output format option to the commands abstrtree, parsetree ↵hallgren
and alignment Supported output formats: gv, png, svg.
2012-03-07libpgf: implementation for built in literal categorieskr.angelov
2012-03-07libpgf: simple fix in the parser debuggerkr.angelov
2012-03-07libpgf: two APIs - one for finding all parse results and another for finding ↵kr.angelov
the best parse result
2012-03-06gfse: small usability improvementshallgren
2012-03-05gfse: more helpful hints about grammar parts and RGL moduleshallgren
2012-03-05gfse: bug fix: avoid hickup when inhertiting from a missing concrete syntaxhallgren
2012-03-05gf-server.cabal: always build the fastcgi module (pgf-server), lower version ↵hallgren
requirement on the cgi package + The flag fastcgi is removed: building the fastcgi is the main purpose of this cabal file again. + pgf-http superseded by gf-server, but is still available as an option + Require cgi>=3001.7.3 instead of cgi>=3001.8.0.
2012-03-05minibar: tool tip on the feedback button and hint in the feedback formhallgren
that the user should select a language from the To: menu to suggest a better translation to a particular language.
2012-03-05libpgf: now all concrete functions and categories are explicitly linked to ↵kr.angelov
their abstract counter parts
2012-03-02libpgf: preliminary version for the statistical ranking. we use naive ↵kr.angelov
statistical model with random weight for the meta variables.
2012-03-02libpgf: simple optimization in the implementation for heapskr.angelov
2012-03-01gfse: bug fixhallgren
Fix a problem opening grammars created before grammar extension was introduced.
2012-02-29libpgf: an API for building heaps from buffers in gu/seq.ckr.angelov
2012-02-29gfse & minibar: minor style adjustmentshallgren
2012-02-29gf -server: update start page, add links to some documentationhallgren
2012-02-29gfse: add missing file sort.js to the repositoryhallgren
2012-02-29PGFService.hs bug fix: pattern match failure in doParsehallgren
doParse was missing a branch for PGF.ParseIncomplete. Also introduced the operator .= to simply the code that builds JSON objects.
2012-02-29libpgf: the first prototype for the robust parserkr.angelov
2012-02-29libpgf: the choice object should remember integers instead of single byteskr.angelov
2012-02-28gfse: Translation Quiz integrationhallgren
Also moved the translation quiz from demos/TransQuiz to src/www/TransQuiz so that it will be installed by 'cabal install' along with the other files that are installed for use by gf -server mode.
2012-02-28gf -server mode: JSONP support for grammar listshallgren
Needed by the translation quiz.
2012-02-28libpgf: another fix in the parser debuggerkr.angelov
2012-02-28bug fix in AppPredefined: don't compare values that contain variables. this ↵aarne
should be checked even more generally.