John J. Camilleri
398b294734
Use Data.Text instead of String. Rename Abstr to Abstract, Concr to Concrete.
2021-02-16 16:04:40 +01:00
John J. Camilleri
d394cacddf
Add support for CAPIT and ALL_CAPIT
2021-02-16 15:17:54 +01:00
John J. Camilleri
21f14c2aa1
Add support for SOFT_SPACE
2021-02-16 14:57:33 +01:00
John J. Camilleri
23e49cddb7
Add support for SOFT_BIND (which PGF runtime doesn't support)
2021-02-16 14:51:29 +01:00
John J. Camilleri
4d1217b06d
Add support for pre
2021-02-15 21:57:05 +01:00
John J. Camilleri
109822675b
Pass test with FoodsFin, by forcibly resorting record fields to make s first
2021-02-15 00:43:53 +01:00
John J. Camilleri
d563abb928
Minors
2021-02-13 00:59:15 +01:00
John J. Camilleri
98f6136ebd
Add support for BIND
2021-02-13 00:14:35 +01:00
John J. Camilleri
8cfaa69b6e
Handle record tables, pass FoodSwe in testsuite
2021-02-12 23:51:16 +01:00
John J. Camilleri
a12f58e7b0
Add test case for selection using records (fails)
2021-02-10 13:55:38 +01:00
John J. Camilleri
9c2d8eb0b2
Add FoodsChi, FoodsHeb to LPGF testsuite
2021-02-09 10:14:40 +01:00
John J. Camilleri
34f0fc0ba7
Fix bug in dynamic parameter handling, compile FoodsBul successfully
2021-02-03 15:41:27 +01:00
John J. Camilleri
42b9e7036e
Support dynamic param values
2021-02-03 13:16:10 +01:00
John J. Camilleri
132f693713
Minor cleanup
2021-02-03 09:44:15 +01:00
John J. Camilleri
153bffdad7
Support nested parameters, but fails with non-static values (see FoodsBull, ASg kind.g).
2021-02-03 00:11:22 +01:00
John J. Camilleri
c94bffe435
Generalise testsuite script to use treebank files, add FoodEng
2021-02-02 21:22:36 +01:00
John J. Camilleri
2a5850023b
Correctly handle projection, but only in limited cases
2021-02-01 13:08:39 +01:00
John J. Camilleri
fe15aa0c00
Use canonical GF in LPGF compiler
...
Still contains some hardcoded values, missing cases.
I notice now that LPGF and Canonical GF are almost identical, so maybe we don't need a new LPGF format,
just a linearization-only runtime which works on canonical grammars.
The argument for keeping LGPF is that it would be optimized for size and speed.
2021-02-01 12:28:06 +01:00
John J. Camilleri
cead0cc4c1
Add selection and projection cases but not working
2021-01-26 09:55:07 +01:00
John J. Camilleri
270e7f021f
Add binary instances
2021-01-25 14:42:00 +01:00
John J. Camilleri
32b0860925
Make LPGF testsuite work (but still fails)
...
stack test :lpgf
2021-01-25 13:41:33 +01:00
John J. Camilleri
f24c50339b
Strip down format. More early work on compiler. Add testsuite (doesn't work yet).
2021-01-25 12:10:30 +01:00
John J. Camilleri
cd5881d83a
Early work on LPGF compiler
2021-01-22 15:17:36 +01:00
John J. Camilleri
93b81b9f13
Add first version of LPGF datatype, with linearization function and some hardcoded examples
2021-01-22 14:07:41 +01:00
John J. Camilleri
8ad9cf1e09
Add flag and stubs for compiling to LPGF format
2021-01-19 17:21:13 +01: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