kr.angelov
f99d3033aa
bugfix in the C runtime that shows up with only some grammars
2014-04-08 12:41:41 +00:00
kr.angelov
e3d49bea01
Expr and ExprProb are now serializable objects
2014-04-07 12:52:51 +00:00
kr.angelov
bd892b8a1d
fix the haskell binding to handle parse errors
2014-04-04 11:46:40 +00:00
kr.angelov
b3ba3d3c1c
initial binding to Prolog for the C runtime
2014-04-02 10:03:19 +00:00
kr.angelov
911ae42296
small fixes in the C runtime
2014-03-25 13:57:57 +00:00
kr.angelov
d816c34986
added hasLinearization method in the Python binding
2014-03-20 14:48:47 +00:00
kr.angelov
eb1aa24896
fix in the Python binding which was forgoten after a change in the C runtime
2014-03-20 14:48:02 +00:00
kr.angelov
a1446b87fa
whitespace cleanup in the parser
2014-03-18 10:19:35 +00:00
kr.angelov
ae1512c926
compute the right word probability
2014-03-12 15:36:40 +00:00
hallgren
f092e7fe5b
haskell-bind: comment out superfluous imports
2014-03-12 13:21:47 +00:00
kr.angelov
ebb61fbf1c
ensure that negative probabilities are always avoided
2014-03-12 13:11:23 +00:00
kr.angelov
2132eb6bed
added Java API to the simple word completion
2014-03-07 21:29:26 +00:00
kr.angelov
319308007c
fix in the Java binding after the implementation for pre
2014-03-07 21:28:40 +00:00
kr.angelov
ba28cfd80e
added pgf_lookup_word_prefix which makes it possible to do simple word prediction
2014-03-07 21:24:20 +00:00
kr.angelov
6cb693bdf5
bugfix in pgf-translate
2014-03-07 09:35:57 +00:00
hallgren
052ead6797
C run-time: protect from Windows specific #includes with #ifdef __MINGW32__
2014-03-06 13:42:27 +00:00
kr.angelov
4f9afb9343
implementation for pre in the C runtime
2014-03-05 10:17:42 +00:00
kr.angelov
cbe17732a6
use pgf_linearize instead of pgf_lzr_linearize_simple in pgf-translate.c
2014-03-04 10:30:23 +00:00
kr.angelov
2e1dd543e9
memory leak in parseval.c
2014-03-04 10:29:18 +00:00
kr.angelov
c197de7fbd
rename pgf_lzr_linearize_table to pgf_lzr_get_table
2014-03-04 10:13:23 +00:00
kr.angelov
ddf36bcd62
more in src/runtime/java/INSTALL
2014-02-27 21:21:19 +00:00
kr.angelov
60bfacf7c2
another fix for building the Java binding
2014-02-27 21:20:19 +00:00
kr.angelov
aeeabe3f0e
added file with instructions for compiling the Java binding
2014-02-27 20:20:59 +00:00
kr.angelov
994d936ce9
instructions for compiling the C runtime on Windows
2014-02-27 20:04:30 +00:00
kr.angelov
2eaf51f15a
changes in Makefile.am to make it easier to compile the C runtime on Windows
2014-02-27 19:37:10 +00:00
kr.angelov
2238d1e462
include malloc.h in a few places to avoid warnings on Windows
2014-02-27 19:34:14 +00:00
kr.angelov
b87104aa89
update the Eclipse project for jpgf with settings needed for Windows
2014-02-27 19:28:25 +00:00
hallgren
c9af5d11c0
Restore compatibility with GHC 7.0
2014-02-10 21:44:34 +00:00
kr.angelov
44a764cd2f
proper error checking in the C runtime
2014-02-10 14:07:17 +00:00
hallgren
1bcb2d06e3
haskell-bind: fix broken pgf-shell
...
The type CId was replaced with String, so can't use show and read anymore.
2014-02-10 12:59:31 +00:00
kr.angelov
5818b0fe1b
bugfix in pgf2-bind.cabal
2014-02-10 10:28:19 +00:00
kr.angelov
1746e3ad2a
updated haskell-bind/README
2014-02-09 20:56:01 +00:00
kr.angelov
adeeb47e06
cleanup the code for the FFI binding. The API is now more uniform with the Python and the Java bindings. Fixed a lot of memory leaks.
2014-02-09 20:45:11 +00:00
kr.angelov
f30c60c3d7
GuVariant is now plain uintptr_t instead of a structure to make it easier to write Haskell bindings
2014-02-09 19:07:15 +00:00
hallgren
680bf64454
pgf-shell: show the names of the concrete syntaxes after loading the grammar
2014-02-07 16:40:13 +00:00
inari
8de56530e0
haskell-bind: add function languages
2014-02-07 15:56:12 +00:00
hallgren
9a422839cc
pgf-shell: enable -rtsopts, call performGC between commands
...
This is to make it easier to find the cause of space leaks.
2014-02-07 13:57:13 +00:00
inari
957dfb83b6
fixed some memory leaks
2014-02-06 10:50:59 +00:00
kr.angelov
f23bcb8a47
bugfix in the recognizer for literals in the C runtime
2014-02-05 20:13:52 +00:00
hallgren
edeb094cf5
PGF.Optimize: one more fix for unsafeFreeze
2014-02-04 13:47:37 +00:00
hallgren
9df56550cd
PGF.Optimize: import unsafeFreeze from Data.Array.Unsafe for compatibility with ghc-7.8
2014-02-04 13:44:07 +00:00
kr.angelov
e6ab8c4aa4
fix in the bracketedLinearize in Haskell
2014-01-31 08:52:32 +00:00
inari
f0ddf0fe72
changes to pools in haskell bindings
2014-01-29 16:02:07 +00:00
kr.angelov
55ea6cbec5
fix in the Haskell runtime
2014-01-24 08:34:55 +00:00
hallgren
9d71ffc831
Optionally include C run-time support
...
If the C run-time library is compiled and installed on your system, you can now
do 'cabal configure -fc-runtime' to get the following extras:
+ The haskell binding to the C run-time library will be included in the
PGF library (so you can import it in Haskell applications).
Documentation on the new modules will be included when you run
'cabal haddock'.
+ The new command 'pgf-shell', implemented on top of haskell binding to
the C run-time system.
+ Three new commands in the web API: c-parse, c-linearize and
c-translate. Their interfaces are similar to the corresponding commands
without the "c-" prefix, but they should be considered preliminary.
2014-01-20 17:06:11 +00:00
hallgren
801a20d27a
haskell-bind: add an export list to hide internal stuff
...
It also makes the generated haddock documentaiton more structured.
2014-01-20 14:40:38 +00:00
hallgren
d2d57a9210
haskell-bind.cabal: relax overly restrictive version bounds and add cc-options
2014-01-17 14:18:20 +00:00
hallgren
045eeeb280
haskell-bind: add a cabal file and examples/pgf-shell.hs
...
* The haskell-bind.cabal file makes it easy to build the haskell binding and
use it in ghci.
* pgf-shell.hs is a simple example of how to use the haskell binding.
2014-01-17 14:02:35 +00:00
hallgren
b0a40d82b9
haskell-bind: change the type of CRuntimeFFI.getConcr
...
Change the type of getConcr from
getConcr :: PGF -> Language -> Concr
to
getConcr :: PGF -> Language -> Maybe Concr
This is to prevent programs from crashing later if you try to select a
concrete syntax that is not present in a grammar.
2014-01-17 13:58:48 +00:00
kr.angelov
a01e248ae6
make sure that pgf_concrete_load has no effect on grammars that are completely loaded
2013-12-17 13:57:16 +00:00