Inari Listenmaa
4e8859aa75
Merge pull request #118 from GrammaticalFramework/canonical
...
Fixes to canonical compilation
2021-07-06 09:16:52 +02:00
Inari Listenmaa
09d772046e
Merge pull request #57 from inariksit/cc-bugfix-rgl-only
...
Hotfix for #56 (cc doesn't work for many RGL languages)
2021-07-02 10:11:35 +02:00
John J. Camilleri
b090e9b0ff
Add --haskell=pgf2 flag
2021-07-01 15:31:00 +02:00
John J. Camilleri
78b73fba20
Make cleanupRecordFields also recurse into variants
...
It's possible that more constructors need to be handled
2021-07-01 13:53:33 +02:00
John J. Camilleri
e5a2aed5b6
Remove record fields not in lincat
...
Fixes #100 , #101
2021-07-01 11:47:14 +02:00
John J. Camilleri
13575b093f
Add top-level signatures and general code cleanup
2021-07-01 10:13:42 +02:00
John J. Camilleri
587004f985
Sort record fields in lin definitions
...
Fixes #102
2021-06-30 14:14:54 +02:00
John J. Camilleri
0a70eca6e2
Make GF.Grammar.Canonical.Id a type synonym for GF.Infra.Ident.RawIdent
...
This avoids a lot of conversion back and forth between Strings and ByteStrings
This commit was cherry-picked from d0c27cdaae (lpgf branch)
2021-06-30 10:58:23 +02:00
Inari Listenmaa
6efbd23c5c
Merge pull request #84 from ffrixslee/issue-46
...
Issue 46 (various deprecations during compilation of GF)
2021-06-29 23:48:00 +02:00
John J. Camilleri
3a27fa0d39
Add another =
2021-06-24 09:34:27 +02:00
John J. Camilleri
1ba5449d21
Update pgf.cabal, and minors to other cabal files
2021-06-24 09:31:37 +02:00
Andreas Källberg
2c37e7dfad
Fix build for ghc-7.10.3
2021-06-16 14:54:36 +08:00
Andreas Källberg
b1ed63b089
Don't print stack traces in Command.hs
...
They don't provide useful info anyways and they are needlessly verbose.
2021-06-16 14:26:22 +08:00
krangelov
af1360d37e
allow parameter cat in the Web API for parsing
2021-05-27 11:45:31 +02:00
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
Liyana
76bec6d71e
Omitted import Except(..)
2020-11-12 09:48:15 +08:00
Liyana
2dc179239f
Replaced Control.Monad.Error with Control.Monad.Except
2020-11-10 17:32:43 +08:00
Liyana
9b02385e3e
Removed fromValue for boolV
2020-11-10 17:26:56 +08:00
Liyana
54e5fb6645
Added explicit implementation for 'readJSON' in the instance declaration for 'JSON PGF.Trie'
2020-11-10 17:19:18 +08:00
Liyana
8ca4baf470
Deleted redundant pattern match
2020-11-10 17:15:20 +08:00
Liyana
1f7584bf98
Added explicit implementation for 'fromValue' in instance declaration for 'Predef Bool'
2020-11-10 17:14:31 +08:00
Liyana
4364b1d9fb
Replaced Control.Monad.Error with Control.Monad.Except
2020-11-10 17:11:41 +08:00
Liyana
33aad1b8de
Deleted redundant pattern match
2020-11-10 17:06:35 +08:00
Liyana
dc6dd988bc
Replaced inlinePerformIO with accursedUnutterablePerformIO
2020-11-10 17:01:47 +08:00
Liyana
ac81b418d6
Added readJSON error messages
2020-11-10 16:57:33 +08: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