summaryrefslogtreecommitdiff
path: root/gf.cabal
AgeCommit message (Collapse)Author
2019-02-21Need aeson>=1.3Thomas Hallgren
Also remove ununsed GF.Compile.PGFtoAbstract
2019-02-08encoding/decoding canonical GF grammars to/from JSON and YAMLPeter Ljunglöf
2019-01-22More work on the canonica_gf exportThomas Hallgren
+ Abstract syntax now is converted directly from the Grammar and not via PGF, so you can use `gf -batch -no-pmcfg -f canonical_gf ...`, to export to canonical_gf while skipping PMCFG and PGF file generation completely. + Flags that are normally copied to PGF files are now included in the caninical_gf output as well (in particular the startcat flag).
2019-01-17Adding -output-format canonical_gfThomas Hallgren
This output format converts a GF grammar to a "canonical" GF grammar. A canonical GF grammar consists of - one self-contained module for the abstract syntax - one self-contained module per concrete syntax The concrete syntax modules contain param, lincat and lin definitions, everything else has been eliminated by the partial evaluator, including references to resource library modules and functors. Record types and tables are retained. The -output-format canonical_gf option writes canonical GF grammars to a subdirectory "canonical/". The canonical GF grammars are written as normal GF ".gf" source files, which can be compiled with GF in the normal way. The translation to canonical form goes via an AST for canonical GF grammars, defined in GF.Grammar.Canonical. This is a simple, self-contained format that doesn't cover everyting in GF (e.g. omitting dependent types and HOAS), but it is complete enough to translate the Foods and Phrasebook grammars found in gf-contrib. The AST is based on the GF grammar "GFCanonical" presented here: https://github.com/GrammaticalFramework/gf-core/issues/30#issuecomment-453556553 The translation of concrete syntax to canonical form is based on the previously existing translation of concrete syntax to Haskell, implemented in module GF.Compile.ConcreteToHaskell. This module could now be reimplemented and simplified significantly by going via the canonical format. Perhaps exports to other output formats could benefit by going via the canonical format too. There is also the possibility of completing the GFCanonical grammar mentioned above and using GF itself to convert canonical GF grammars to other formats...
2019-01-16Fix compilation with ghc-7.10Thomas Hallgren
NoMonadFailDesugaring is not supported by ghc-7.10, but it is only needed with ghc>=8.6
2018-12-04Make GF compile with GHC 8.6.2John J. Camilleri
- Re-implement `Distribution.Simple.BuildPaths.exeExtension` - Turn off `MonadFailDesugaring` Tested with GHC: - 7.10.3 - 8.0.2 - 8.2.2 - 8.4.3 - 8.6.2 Yay Stack!
2018-12-02gf.cabal: update tested-withThomas Hallgren
2018-11-29gf.cabal: remove redundant dependency on old-localeThomas Hallgren
2018-11-28Revert "Completely remove uses of example-based"John J. Camilleri
This reverts commit 69cea20dac8ac73fa0a61ed4ff427d2524ee253b.
2018-11-28Completely remove uses of example-basedJohn J. Camilleri
2018-11-28remove custom-binary flag; update Cabal version restriction; bump version to ↵John J. Camilleri
3.10
2018-07-31gf.cabal: expose GF.Text.Lexing, needed by gf-server.cabalThomas Hallgren
2018-07-26Minimal update with new repo URLs & build instructionsJohn J. Camilleri
2018-07-25[GF Split] Post-split updatesJohn J. Camilleri
2018-07-05Relax dependency on `directory` package for SetupJohn J. Camilleri
Since `listDirectory` is no longer used (852a49920)
2018-07-05revert to a version compatible with Cabal 1.22Krasimir Angelov
2018-07-05Cleanup in Setup.hs; include `custom-setup:setup-depends` in cabal file.John J. Camilleri
2018-07-04Remove code which tries to get version information from darcs folderJohn J. Camilleri
2018-06-13Remove editor mode files from Haskell package (in gf.cabal)John J. Camilleri
2018-04-18gf.cabal: use -fhide-source-pathsThomas Hallgren
if ghc>=8.2
2017-09-07the experimental export to Lambda Prolog is now obsolete and is removedKrasimir Angelov
2017-09-04eliminate modules PGF.Lexing, PGF.LexingAGreek. Make PGF.Utilities an ↵Krasimir Angelov
internal module in the runtime. These are not really part of the core runtime.
2017-09-04move the custom Binary package back to src/runtime/haskellKrasimir Angelov
2017-08-29added option -output-format=java for producing code for embedded grammars in ↵Krasimir Angelov
Java
2017-08-18Bump version requirements to base>=4.6, Cabal>=1.20Thomas Hallgren
Cabal>=1.20 allows control over parallelism when compiling grammars from Setup.hs and WebSetup.hs. base>=4.6 allows conditional compilation with CPP to be eliminated from a few modules. base-4.6 corresponds to GHC 7.6.3, which is what you get in Debian 8 (aka jessie, aka oldstable) from 2015.
2017-08-11Final changes before the release of GF 3.9Thomas Hallgren
2017-08-11gf.cabal: don't enable warnings about unused imports by defaultThomas Hallgren
2017-06-30gf.cabal: update bug-reports and tested-withThomas Hallgren
2017-06-29gf.cabal: update the source repository to point to the GitHub repositoryThomas Hallgren
2017-02-21Fix compilation errors caused by changes in PGF2hallgren
These prevented GF from being built with C run-time support (-fc-runtime).
2016-07-05gf.cabal: bump version to 3.8-darcshallgren
2016-06-22Final changes for the GF 3.8 releasehallgren
News item on the home page Put the download page and release notes in place. Add an entry in debian/changelog. Update the version number in gf.cabal.
2016-06-17Documentation updateshallgren
Remove ghc-7.4 from the list of tested/recommended versions of GHC (because of Hackage dependency problems). Recommend version 7.10.3 of the Haskell Platform. (GHC 8.0.1 works too, but I haven't tested the corresponding Haskell Platform packages.)
2016-06-16A few documentation updateshallgren
gf.cabal: include more GHC versions in the Tested-Width field.
2016-06-16gf.cabal: don't build pgf-shell any more, it's been superceded by gf -cshellhallgren
2016-03-21initial support for BNFC syntax in context-free grammars for GF. Not all ↵krasimir
features are supported yet. Based on contribution from Gleb Lobanov
2016-03-02gf.cabal: Remove GF.Compile.Compute.ConcreteNew1hallgren
2016-02-23add lexer and unlexer for Ancient Greek accent normalizationleiss
2015-10-07gf.cabal: require base>=4.5 (ghc>=7.4)hallgren
There are some low-level dependencies in GF.Text.Coding that break compatibility with older versions of GHC and some other known problems.
2015-10-05Update PGF API documentation link on home page, bump version number in ↵hallgren
gf.cabal to 3.7.1-darcs
2015-10-02Bump version number to 3.7.1 and finalize documentationhallgren
Updated version number in gf.cabal and update debian/changelog News item on home page (index.html) Some last minute edits on the download page Move the new release notes and download page in place.
2015-09-11Parallel compilation: "gf -make -j" and "gf -make -j=n" now work as expectedhallgren
* "gf -make -j=n" uses n parallel threads. * "gf -make -j" adapts to the number of processors in the system. This mimics how "cabal build -j" and "ghc --make -j" works. Support for this is implemented in the new module GF.System.Concurrency and it depends on the function Control.Concurrent.setNumCapabilities, which is only available in GHC>=7.6 (base>=4.6). GF can still be compiled with GHC<7.6, but then you have to use +RTS -N -RTS to take advantage of multicore processors. To detect the number of processors in the system, the code depends on a foreign import of a C function in the GHC run-time system.
2015-09-03PGF2.Expr fixeshallgren
It needs to be listed in gf.cabal unsafePerformIO is only exported from System.IO.Unsafe, starting with ghc-7.8
2015-08-12GF shell: source commands (cc, sd, so, ss & dg) can now be used in pipeshallgren
These commands are now implemented as regular commands (i.e. using the CommandInfo data type) in the new module GF.Command.SourceCommands. The list of commands exported from GF.Command.Commmands now called pgfCommands instead of allCommands. The list allCommands of all commands is now assembled from sourceCommands, pgfCommands, commonCommands and helpCommand in GF.Interactive.
2015-08-10Forgot to include gf.cabal in previous patchhallgren
2015-08-10gf -cshell: preliminary support for the C run-time system in the GF shellhallgren
Some C run-time functionality is now available in the GF shell, by starting GF with 'gf -cshell' or 'gf -crun'. Only limited functionality is available when running the shell in these modes: - You can only import .pgf files, not source files. - The -retain flag can not be used and the commands that require it to work are not available. - Only 18 of the 40 commands available in the usual shell have been implemented. The 'linearize' and 'parse' commands are the only ones that call the C run-time system, and they support only a limited set of options and flags. Use the 'help' commmands for details. - A new command 'generate_all', that calls PGF2.generateAll, has been added. Unfortuntaly, using it causes 'segmentation fault'. This is implemented by adding two new modules: GF.Command.Commands2 and GF.Interactive2. They are copied and modified versions of GF.Command.Commands and GF.Interactive, respectively. Code for unimplemented commands and other code that has not been adapted to the C run-time system has been left in place, but commented out, pending further work.
2015-08-10Refactor GF shell modules to improve modularity and reusabilityhallgren
+ Move type CommandInfo from GF.Command.Commands to a new module GF.Commands.CommandInfo and make it independent of the PGF type. + Make the module GF.Command.Interpreter independent of the PGF type and eliminate the import of GF.Command.Commands. + Move the implementation of the "help" command to its own module GF.Command.Help
2015-06-25Remove left over [...] from release notes, bump version number in gf.cabal ↵hallgren
to 3.7-darcs
2015-06-25Update home page, download page & release notes for GF 3.7. Bump version ↵hallgren
number in gf.cabal
2015-06-25Documentation updates for the release of GF 3.7hallgren