summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-10-02GF.Interactive2: extension FlexibleContexts is needed for GHC 7.10 compatibilityhallgren
2015-10-02Minor edit of GF 3.7.1 release noteshallgren
2015-10-01Some work on the release notes and download page for GF 3.7.1.hallgren
2015-10-01bin/build-binary-dist.sh: fix hardcoded /usr install path for .pkg packages.hallgren
2015-10-01Makefile: make pkg: change install location from /usr to /usr/localhallgren
...for compatibility with OS X 10.11 El Capitan (which was released yesterday)
2015-09-30cc -trace: don't try to show the bodies of lambda abstractionshallgren
This triggers evaluation of terms with free variables, which the partial evaluator isn't equipped to handle. Reported by Aarne.
2015-09-30added bracketedLinearizeAll in Pythonkrasimir
2015-09-29download/release-next.t2t: preliminary release notes for GF 3.7.1hallgren
To be released as soon as possible...
2015-09-29GF source lexer: allow numeric character escapes in string literalshallgren
This makes the output from PGF.showExpr (and other Haskell code that uses the Prelude.show function to show strings) parsable as GF source code in more cases. This is a workaround for the problem that GHC's implementation of the show function uses numeric escapes for printable non-ASCII characters, e.g. show "dålig" = "d\229lig"...
2015-09-28Preliminary new shell feature: cc -trace.hallgren
You can now do things like cc -trace mkV "debug" to see a trace of all opers with their arguments and results during the computation of mkV "debug".
2015-09-14haskell-bind/SG.hsc: fix unsafePerformIO import problem with ghc>=7.8hallgren
2015-09-14doc/gf-developers.t2t: script name for installing the C run-time was wrong, ↵hallgren
should be setup.sh
2015-09-14doc/gf-developers.t2t: some updateshallgren
2015-09-11WebSetup.hs: always enable parallel compilation of the RGL and the example ↵hallgren
grammars This should work nicely now that GF itself can detect the number of processors in the system. Previously there was some code in WebSetup.hs that relied on Cabal to do this, but it was commented out because it requires Cabal>=1.20, which is fairly new and it would complicate the installation instructions if it was required to compile GF...
2015-09-11Remove debug output introduced in previous patchhallgren
Oops.
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-11fix the debug mode in the tree generator in the C runtimekrasimir
2015-09-10PGF2.Expr: a fix for ghc-7.6hallgren
Apparently Foreign.unsafePerformIO is not just a re-export of System.IO.Unsafe.unsafePerformIO (or vise versa), it is a different function, so you get an ambiguity if you import both.
2015-09-10example/foods/FoodsIce.gf: converted from Latin-1 to UTF-8 encodinghallgren
2015-09-08add readTriple in the Haskell bindingkrasimir
2015-09-08bugfix in the parserkrasimir
2015-09-04fix the metadata for sg databaseskrasimir
2015-09-04storage for literals in libsgkrasimir
2015-09-04src/pgf-binary: reimplementation of GF's customized Data.Binary on top of ↵thomas
the standard binary packages This reduces the amount of duplicated code from 2400 to 490. No code from data-binary-ieee754 is duplicated. The module is called PGF.Data.Binary instead of Data.Binary. It is not in use yet.
2015-09-04libsg is now accessible on androidkrasimir
2015-09-04API for triple queries from Javakrasimir
2015-09-04the Haskell binding now covers everything in the libsg APIkrasimir
2015-09-04the new triples API in libsg now always works with expressionskrasimir
2015-09-03GF shell: write_file now writes one tree per linehallgren
This compensates for other changes that removed line breaks. Maybe it should have a -lines options like ps and rf?
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-09-03Java API for opening/closing SG databaseskrasimir
2015-09-03bugfixes in libsgkrasimir
2015-09-03the Eclipse project for the Java binding is now replaced with a simple Makefilekrasimir
2015-09-03silence compilation warnings in the Java bindingkrasimir
2015-09-02API for transactions in libsgkrasimir
2015-09-02added the minimal Haskell API for storing expressions/triples in the ↵krasimir
semantic graph
2015-09-02bugfix in libsgkrasimir
2015-09-02Wide coverage translation demo: make it easier to use with different grammarshallgren
2015-09-01added code for visualization of the sematic graph in the app. The code is ↵krasimir
there but the menu item for activating it is not there yet since the functionality is not complete
2015-08-31GF.Infra.SIO: The SIO monad now supports putStr in addition to putStrLnhallgren
Also included some unrelated minor changes.
2015-08-31still partial implementation for complex queries in libsg, and added sg.h ↵krasimir
which I had forgotten to include in darcs
2015-08-28Comment out some dead code found with -fwarn-unused-bindshallgren
Also fixed some warnings and tightened some imports
2015-08-27query for triples and cleaner APIkrasimir
2015-08-26GF shell: change parse & linearize to obtain useful results from p|l and l|p ↵hallgren
in more cases These changes are inspired by the gf -cshell implementation of these commands. The output of the linearize command has been changed to remove superfluous blank lines and commas, and deliver the result as a list of strings instead of a single multi-line string. This makes it possible to use -all and pipe the results to the parse command. This also means that with -treebank -all, the language tag will be repeated for each result from the same language. The parse command, when trying to parse with more than one language, would "forget" other results after a failed parse, and thus not send all successful parses through the pipe. For example, if English is not the first language in the grammar, p "hello" | l would output nothing, instead of translations of "hello" to all languages, forcing the user to write p -lang=Eng "hello" | l instead, to get the expected result. The cause of this behaviour was in the function fromParse, which was rather messy, so I assume it is not intentional, but the result of a programming mistake at some point. The fromParse function has now been refactored from a big recursive function into fromParse opts = foldr (joinPiped . fromParse1 opts) void where the helper functions fromParse1 deals with a single parse result and joinPiped combines multiple parse results.
2015-08-24added libsg in the C runtimekrasimir
2015-08-21retrieval of a triplekrasimir
2015-08-21API for storing triples in the semantic graphkrasimir
2015-08-21GF shell bug fix: visualize_parse didn't accept the -lang flaghallgren
Even though the -lang flag was handled in the implementation, it was not documented, and GF.Command.Interpreter rejects undocumented flags: option not interpreted: lang This must be a fairly old bug, so it suggests that the vp command isn't used much...
2015-08-21GF -cshell: implement visualize_parsehallgren
Supported options and flags: -lang -format -view None of the rendering options available in the Haskell run-time are supported.
2015-08-21add a type signature in GF.Interactive2 to make ghc-7.6.3 happykrasimir