summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-04-19Minibar documentation updatehallgren
Document recent additions in minibar/about.html.
2012-04-19GFEP: updated readme for 1.5.0john.j.camilleri
2012-04-18minibar: add buttons to use generated translations as inputhallgren
This functionality was available in the origial Fridge Poetry app, but has been missing in minibar until now.
2012-04-14download page: fixed a typohallgren
2012-04-14download page: added a note that Xcode 3.2.3 or later is needed on Mac OS Xhallgren
The Haskell Platform page for Mac states that Xcode 3.2 or later is ok, but there seems to be a problem with Xcode 3.2.2. Also added some other small clarifications.
2012-04-11minibar: fix to prevent the typed input field from losing focus when turning ↵hallgren
word-for-word replacment on or off
2012-04-10minibar: internal state type changehallgren
The current intput is now represented as an array of words instead of as a string. (This is the kind of change is scary to do in a dynamically type language like JavaScript. In a statically typed language like Haskell you can do it with confidence, since you know the compiler can help you catch all mistakes...)
2012-04-10minibar_input.js: internal state simplificationhallgren
Get rid of list of previous states, which was only used to delete the last word.
2012-04-10minibar/pgf_online.js: pass arguments to the browse function in the same way ↵hallgren
as the other functions Also document it in gf-web-api-examples.html.
2012-04-05minibar&gfse: grammar extension user interface fixeshallgren
It works OK now, but it could be better, e.g. the number of mouse clicks required to enter an extension could to be reduced...
2012-04-04minibar&gfse: first working grammar extension interface in minibarhallgren
There are still some user interface wrinkles to iron out.
2012-04-04GFEP: updated readmejohn.j.camilleri
2012-04-04GFEP: updated readmejohn.j.camilleri
2012-04-03minibar: remember current inputhallgren
If you leave the minibar and later return, the previous input will be restored. One input string per grammar is rememebered, so you can also switch back and forth between grammars without losing the input. This is implemented using localStorage, i.e. the data is stored locally on the user's device.
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-30gf.cabal: removing -O2 hallgren
Removing "ghc-options: -O2" from gf.cabal has the following advantages: + Compiling GF is faster (time drops from 182s to 142s on my laptop) + Compiling the RGL is faster (time drops from 159s to 155s on my laptop) + Without the hardwired optimization level, the 'cabal configure' options --enable-optimization=<n> and --disable-optimization work as expected (so if you still want -O2, use --enable-optimization=2) + GF can be compiled with ghc-7.2.2 and ghc-7.4.1 (-O2 triggers a bug in these versions of ghc, it seems. Another workaround, discovered by Sergei Trofimovich, is to use -O0 in Data.Binary.)
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-28GFEP: page is now valid HTML and uses the gf.org stylesheetjohn.j.camilleri
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-26gf-book: apply GF style sheethallgren
Also brought index.txt and index.html back in sync. (It looks like someone updated index.html instead of updating index.txt and regenerating index.html.)
2012-03-23doc/icfp-2012.t2t: link back to ICFP 2012 web sitehallgren
2012-03-23GF home page: News: GF Tutorial at ICFP 2012hallgren
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-22GFEP: updated readmejohn.j.camilleri
2012-03-21GFEP: updated readmejohn.j.camilleri
2012-03-20ICFP 2012 tutorial page: use the GF stylesheet for a consistent lookhallgren
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-19GFEP: added more images for readmejohn.j.camilleri
2012-03-19GFEP: Added video tutorialjohn.j.camilleri
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-17icfp tutorial web pageaarne
2012-03-16Adding a .ghci file to make it easier to load GF in ghci.hallgren
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