John J. Camilleri
126b61ea03
Merge branch 'master' into lpgf
2021-03-08 13:52:34 +01:00
John J. Camilleri
fd07946a50
Remove commented line
2021-03-08 10:42:16 +01:00
John J. Camilleri
785d6069e2
Fix lin2string and pass all unittests and Phrasebook
2021-03-08 09:53:10 +01:00
John J. Camilleri
575a746a3e
Add LPGF function for catching errors. Manual fixes to Phrasebook treebank.
2021-03-05 12:05:25 +01:00
John J. Camilleri
30b016032d
Also store Pre prefixes in token map. Introduce IntMapBuilder data structure.
...
Storing of prefixes uses show/read, which isn't a great solution but avoids having yet another token map.
2021-03-04 09:58:17 +01:00
John J. Camilleri
4082c006c3
Extract token strings and put them in map which linfuns refer to by index, to reduce LPGF sizes.
2021-03-04 00:16:12 +01:00
John J. Camilleri
4c09e4a340
Remove LF prefix from constructors. Pass all unit tests and Foods again, but improvements/cleanup still necessary.
2021-03-03 09:19:52 +01:00
John J. Camilleri
33e0e98aec
Add 1-tree treebank for Phrasebook in a few languages
2021-02-28 00:34:46 +01:00
John J. Camilleri
4771d9c356
WIP params
2021-02-26 17:18:21 +01:00
krangelov
8fbfc0b4a9
bracketedLinearize now reports the binding spots just like the Haskell binding
2021-02-26 14:58:31 +01:00
John J. Camilleri
8324ad8801
Add pretty-printing of LPGF grammars, to help debugging
2021-02-26 10:13:33 +01:00
John J. Camilleri
b4a393ac09
Pass missing unit test
2021-02-21 14:22:46 +01:00
John J. Camilleri
9f3f4139b1
Grammar and languages to run in testsuite can be specified by command line options, see README
2021-02-19 11:14:55 +01:00
John J. Camilleri
29114ce606
Improve binary format, reducing Foods.lpgf from 300 to 73KB (4x smaller!)
2021-02-16 23:30:21 +01:00
John J. Camilleri
5be21dba1c
Add and pass FoodsJpn
2021-02-16 22:49:37 +01:00
John J. Camilleri
312cfeb69d
Add Afr, Amh, Cat, Cze, Dut, Ger foods grammars to testsuite
2021-02-16 22:33:26 +01:00
John J. Camilleri
4c06c3f825
Add case for when pre is not followed by anything
2021-02-16 21:01:01 +01:00
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
4d1217b06d
Add support for pre
2021-02-15 21:57:05 +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
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
132f693713
Minor cleanup
2021-02-03 09:44:15 +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
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
270e7f021f
Add binary instances
2021-01-25 14:42:00 +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
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
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
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
Andreas Källberg
56f94da772
Merge remote-tracking branch 'origin/master' into fix-newer-cabal
2020-09-05 21:11:12 +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
Andreas Källberg
251845f83e
First attempt at fixing incompabilities with newer cabal
2020-08-05 18:48:24 +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
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