John J. Camilleri
84fd431afd
Manage to get completion working in PGF2
2021-05-03 22:28:48 +02:00
John J. Camilleri
588cd6ddb1
Improvement to test script, distinguishes when input ends with whitespace
2021-05-03 20:51:24 +02:00
John J. Camilleri
437bd8e7f9
Add proper error handling in complete
2021-05-03 20:36:31 +02:00
John J. Camilleri
e56d1b2959
Second attempt. Reading enum is closer to working but all strings are empty.
2021-05-03 14:25:35 +02:00
John J. Camilleri
450368f9bb
First attempt at adding support for complete in PGF2 (gives segmentation faults)
2021-05-03 13:19:08 +02:00
John J. Camilleri
60bc752a6f
Add note about type-checking dynamic expressions in PGF2 Haddock
...
Closes #72
2021-04-30 14:59:20 +02:00
krangelov
ba3e09cc38
Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core
2021-02-26 14:59:18 +01:00
krangelov
8fbfc0b4a9
bracketedLinearize now reports the binding spots just like the Haskell binding
2021-02-26 14:58:31 +01:00
Inari Listenmaa
173fca7f12
Merge pull request #93 from inariksit/notYet-errormsg
...
Fix #92 (inappropriate error message)
2021-02-06 14:04:45 +01:00
krangelov
655173932e
fix type signature
2021-01-20 20:38:19 +01:00
krangelov
04f6f113f0
Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core
2021-01-20 20:16:26 +01:00
krangelov
bac619f025
fix gu_map_next
2021-01-20 20:15:40 +01:00
Inari Listenmaa
1a466c14c8
Don't print out the error msg for pattern matching unnecessarily
2021-01-20 01:15:28 +08:00
krangelov
d4ccd2848c
Take a step back and do bottom up prediction only when needed. This solves the problem that some sentences were impossible to parse.
2020-11-17 10:26:00 +01:00
Andreas Källberg
1ff66006b8
Fix infinite recursion on error
...
The implementation was meant to lift from SIO to IO,
but instead it was just the identity function,
which means that `fail = id . fail` and we have an infinite loop.
2020-10-26 17:21:22 +01:00
Andreas Källberg
f2e4b89a22
Fix syntax error problem for older versions of GHC
2020-10-08 17:41:44 +02:00
krangelov
f3a8658cc1
Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core
2020-10-02 19:55:24 +02:00
krangelov
bfb94d1e48
fix parsing with HOAS
2020-10-02 19:34:52 +02:00
John J. Camilleri
d95b3efd6b
Add instructions for uploading PGF2 to Hackage
2020-09-18 10:49:21 +02:00
John J. Camilleri
db8b111e72
Bump PGF2 to 1.2.1
2020-09-18 10:34:45 +02:00
John J. Camilleri
ab52572f44
Fix bug where shell commands were ignored, introduced by #71
2020-09-18 09:25:08 +02:00
Andreas Källberg
127a1b2842
Remove MonadFail requirements for aeson code
2020-09-12 11:04:32 +02:00
Andreas Källberg
2fd1040724
Fix incorrect type and update dependencies
2020-09-12 11:04:32 +02:00
Andreas Källberg
9d8cd55cd5
Import orphan instances of MonadFail for ghc<8
...
Also upgrade alex/happy so automatic install works
2020-09-09 11:05:41 +02:00
Andreas Källberg
56f94da772
Merge remote-tracking branch 'origin/master' into fix-newer-cabal
2020-09-05 21:11:12 +02:00
Andreas Källberg
57ce76dbc1
Add two more missing MonadFail imports
2020-09-05 20:57:30 +02:00
Andreas Källberg
2b23e0f27e
Fix wrong indent
2020-09-05 20:45:08 +02:00
Andreas Källberg
7268253f5a
MonadFail: Make backwards-compatible
2020-09-05 20:23:07 +02:00
Andreas Källberg
1234c715fc
Fix MonadFail for c-runtime as well
2020-09-05 18:57:40 +02:00
krangelov
90fc1d750e
remove the deprecated pgf_print_expr_tuple
2020-08-14 21:03:48 +02:00
krangelov
24beed9a95
Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core
2020-08-14 20:56:20 +02:00
krangelov
23edeec5a9
added an API for cloning expressions/types/literals
2020-08-14 20:54:15 +02:00
Inari Listenmaa
542a41fb32
Merge pull request #70 from inariksit/haskell
...
New features in PGF to Haskell translation
2020-08-11 14:20:28 +02:00
Andreas Källberg
3bd1f01959
Fix a few warnings
2020-08-05 18:48:24 +02:00
Andreas Källberg
0581d6827e
Fix most build errors
2020-08-05 18:48:24 +02:00
Andreas Källberg
b8812b54b2
fix newer ghc: Don't try to be backwards compatible
2020-08-05 18:48:24 +02:00
Andreas Källberg
251845f83e
First attempt at fixing incompabilities with newer cabal
2020-08-05 18:48:24 +02:00
Inari Listenmaa
7c478016d0
Replace deprecated pragma with up-to-date one. ( #17 )
2020-08-03 19:45:20 +02:00
John J. Camilleri
deddde953f
Add script for uploading PGF2 documentation to Hackage
...
Hackage's attempt to build the package will fail because of missing C libraries
2020-08-03 14:22:32 +02:00
Inari Listenmaa
868566a319
Remove accidentally added space character in deriving clause.
2020-07-31 15:16:45 +02:00
Inari Listenmaa
aeabc955c8
Remove characters that aren't allowed in Haskell data types.
...
GF allows more characters in its types, as long as they are inside
single quotes. E.g. 'VP/Object' is a valid name for a GF category,
but not for a Haskell data type.
2020-07-31 15:05:46 +02:00
Inari Listenmaa
030c3bfee9
Add option "data" to Haskell options.
...
Imports Data.Data, all GF types derive Data, and uses DeriveDataTypeable.
2020-07-31 12:46:19 +02:00
John J. Camilleri
c53353f087
Updates to PGF2 readme
2020-07-28 22:54:34 +02:00
John J. Camilleri
f00f0cb0ef
Bump pgf2 to 1.2.0
2020-07-28 22:36:49 +02:00
John J. Camilleri
22d5f31d74
Merge remote-tracking branch 'origin/master' into pgf2-hackage
2020-07-28 22:19:15 +02:00
krangelov
830dbe760d
expose parseToChart via the Web API
2020-07-26 15:56:54 +02:00
krangelov
d7965d81b4
parseToChart also returns the category
2020-07-26 15:56:21 +02:00
krangelov
a2d7f1369c
filter out empty brackets
2020-07-26 15:55:18 +02:00
krangelov
0cee82f715
the if is actually unnecessary
2020-07-22 16:55:21 +02:00
krangelov
7229033e42
bugfix in bracketedLinearize
2020-07-22 16:26:05 +02:00