summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2012-12-18partial evaluator bug fixhallgren
Int was missing from the list of predefined canonical constants.
2012-12-18the C runtime now can read abstract expressions with literals and meta variableskr.angelov
2012-12-14debugging infrastructure in the reasonerkr.angelov
2012-12-14bugfix for the reasoner in the C runtimekr.angelov
2012-12-14a bit more flexible API for parsing in Pythonkr.angelov
2012-12-14The first prototype for exhaustive generation in the C runtime. The trees ↵kr.angelov
are always listed in decreasing probability order. There is also an API for generation from Python
2012-12-14Add language extension for ghc<7.4hallgren
FlexibleInstances does not imply TypeSynonymInstances, apparently.
2012-12-14More work on the new partial evaluatorhallgren
The work done by the partial evaluator is now divied in two stages: - A static "term traversal" stage that happens only once per term and uses only statically known information. In particular, the values of lambda bound variables are unknown during this stage. Some tables are transformed to reduce the cost of pattern matching. - A dynamic "function application" stage, where function bodies can be evaluated repeatedly with different arguments, without the term traversal overhead and without recomputing statically known information. Also the treatment of predefined functions has been reworked to take advantage of the staging and better handle partial applications.
2012-12-13bugfix in the lexer from the C runtime. the input sentence doesn't have to ↵kr.angelov
terminate with whitespace
2012-12-13added simple error handling in the Python testkr.angelov
2012-12-13added a simple test for the Python bindingkr.angelov
2012-12-13an initial API for parsing and linearization from Pythonkr.angelov
2012-12-13a top-level API for parsing in the C runtimekr.angelov
2012-12-13bugfix: the outside probability of a PgfItemConts must always be initialized ↵kr.angelov
to zero
2012-12-13bugfix: pgf_read_expr no longer requires a semicolon at the end of an ↵kr.angelov
abstract expression
2012-12-12an initial Python binding to the C runtimekr.angelov
2012-12-12started an official API to the C runtimekr.angelov
2012-12-11partial evaluator workhallgren
* Evaluate operators once, not every time they are looked up * Remember the list of parameter values instead of recomputing it from the pattern type every time a table selection is made. * Quick fix for partial application of some predefined functions.
2012-12-11Syntax editor: unwrap featurejohn.j.camilleri
2012-12-11Syntax editor: link to about pagejohn.j.camilleri
2012-12-11Syntax editor: add about.html (and a Makefile for generating it)john.j.camilleri
2012-12-11bugfix for robust parsing with multi-word unitskr.angelov
2012-12-10Compute.ConcreteNew: add missing case for variant functionshallgren
Also adding a test case in the test suite for this.
2012-12-07Syntax editor: change startcat when wrapping top nodejohn.j.camilleri
2012-12-07Make -new-comp the default and bump the version number to 3.3.11-darcshallgren
* -new-comp (the new partial evaluator) is now chosen by default when you run cabal install (or cabal configure). To revert to using the old partial evaluator by default, use "cabal install -f-new-comp" (or "cabal configure -f-new-comp"). * Regardless of the configured default, you can choose which partial evaluator to use when you invoke gf by using the -new-comp or -old-comp command line option. * The cc command in the GF shell uses the chosen partial evaluator by default, but you can override this by using "cc -new" or "cc -old". The plan is that these flags will be romeved in a future version.
2012-12-07Syntax editor: various small improvements...john.j.camilleri
- separate tree edit buttons from option buttons - fix bug when wrapping on freshly imported ast - add interface for import & export of ast - cleaner internal implementation of Editor.add_refinement - small style updates
2012-12-06Compute.ConcreteNew: bug fix for indirectly defined pattern macroshallgren
More changes are probably needed to make pattern macros first class values. Also includes minor changes related to variants and error messages.
2012-12-04Syntax editor: wrap now handles multiple possible positions for subtreejohn.j.camilleri
2012-12-03Syntax editor: add wrap featurejohn.j.camilleri
2012-12-03added experimental script for chunking in the C runtimekr.angelov
2012-12-03added INSTALL file and updated README file for the C runtimekr.angelov
2012-12-02produce error message instead of failure of irrefutable pattern Ok ty_C in ↵aarne
GrammarToPGF, to help find compilation errors; the ones I've found are because an inherited abstract excludes something that the inherited concrete does not exclude.
2012-11-30Syntax editor: internal optimizations by pre-computing certain stuffjohn.j.camilleri
2012-11-30Syntax editor: in-place replacement of functionsjohn.j.camilleri
When at a non-leaf node, refinements with identical type signatures are highlighting and can re placed without destroying the children. If not, the refinement is greyed and the user is asked to clear the current subtree first if they wish to replace it. This aspect of the UI should be polished, but at least it is obvious. Also, some substantial optimizations can still be made to cache the processed type signatures (which determine what can be replaced in-place)
2012-11-29minibar: add a button to get detailed grammar infohallgren
After pressing the "i" button to view grammar info, there is now a "More info" button to get more detailed information about all categories and functions in the grammar.
2012-11-29minibar: add tool tips to some of the buttonshallgren
Also move the functions title and attr from editor/editor.js to js/support.js. Also mention recent changes in minibar/about.html.
2012-11-29Syntax editor: internal improvements. re-introduce initialize_from functionjohn.j.camilleri
2012-11-29Syntax editor/minibar integration fixjohn.j.camilleri
2012-11-27some documentation updates and fixeshallgren
doc/Makefile: add a rule to regenerate gf-help-full.txt gf-help-full.txt: updated (new parse tree visualization options) demo & cloud index: clarifications minibar documentation: better layout on mobile devices GF 3.4 release notes: reorganized & updated
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