John J. Camilleri
4bd26eae6d
Merge branch 'master' into lpgf
...
# Conflicts:
# gf.cabal
# src/compiler/GF/Compile/GrammarToCanonical.hs
# src/compiler/GF/Grammar/Canonical.hs
# src/compiler/GF/Infra/Option.hs
2021-07-07 08:36:09 +02:00
John J. Camilleri
ef42216415
Add import from command line invocation to command history
...
Closes #64
2021-07-06 15:35:03 +02:00
John J. Camilleri
0c3ca3d79a
Add note in PGF2 documentation about risk for integer overflow.
...
Closes #109
2021-07-06 14:43:21 +02:00
John J. Camilleri
e2e5033075
Merge pull request #122 from 2jacobtan/master
...
specify version bounds in *.cabal files
2021-07-06 14:31:29 +02:00
John J. Camilleri
84b4b6fab9
Some more cabal file cleanup. Add stack files for pgf, pgf2.
2021-07-06 14:11:30 +02:00
Inari Listenmaa
d2fb755fab
Merge branch 'master' into concrete-new
2021-07-06 09:37:22 +02:00
Inari Listenmaa
1b66bf2773
Merge pull request #121 from Meowyam/issue97
...
resolves GrammaticalFramework/gf-core/#97
2021-07-06 09:22:48 +02:00
Meowyam
1e3de38ac4
remove redundant options
2021-07-06 15:22:59 +08:00
Inari Listenmaa
4e8859aa75
Merge pull request #118 from GrammaticalFramework/canonical
...
Fixes to canonical compilation
2021-07-06 09:16:52 +02:00
Meowyam
dff215504a
resolves GrammaticalFramework/gf-core/#97, without l
2021-07-06 15:00:17 +08:00
Inari Listenmaa
173ab96839
Hotfix for https://github.com/GrammaticalFramework/gf-core/issues/56
2021-07-06 14:59:53 +08:00
John J. Camilleri
dff1193f7b
Add --haskell=pgf2 flag
2021-07-06 14:59:53 +08:00
2jacobtan
e1a40640cd
specify version bounds in pgf.cabal and pgf2.cabal
2021-07-06 05:42:34 +08: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
Meowyam
d53e1713c7
resolves GrammaticalFramework/gf-core/#97
2021-07-02 16:08:34 +08:00
John J. Camilleri
b090e9b0ff
Add --haskell=pgf2 flag
2021-07-01 15:31:00 +02:00
John J. Camilleri
5d7c687cb7
Make imports in CheckGrammar a little more explicit
2021-07-01 14:32:39 +02:00
John J. Camilleri
376b1234a2
Rename GF.Compile.TypeCheck.RConcrete to GF.Compile.TypeCheck.Concrete
2021-07-01 14:27:11 +02:00
John J. Camilleri
71d99b9ecb
Rename GF.Compile.Compute.ConcreteNew to GF.Compile.Compute.Concrete
2021-07-01 14:21:29 +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
John J. Camilleri
d0c27cdaae
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
2021-04-06 22:15:07 +02:00
John J. Camilleri
f7df62a445
Add support for literals
2021-03-22 09:12:34 +01:00
John J. Camilleri
f900ea3885
Don't process impossible values at all (not even for finding their types)
2021-03-16 16:59:58 +01:00
John J. Camilleri
c9f0867491
Remove state Map from compilation
2021-03-12 13:46:50 +01:00
John J. Camilleri
6c6a201d96
Introduce state with Map for caching compilation, but results are worse
2021-03-12 13:39:56 +01:00
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
0f4b349b0b
Remove old commented code
2021-03-05 16:51:59 +01:00
John J. Camilleri
dbf369aae5
Make removal of record fields recursive. Latest results with Phrasebook:
...
Bul ✓
Cat ✗
Chi ✓
Dan ✓
Dut ✓
Eng ✓
Est ✓
Fin ✓
Fre ✗
Ger ✓
Hin ✓
Ita ✗
Jpn ✓
Lav ✓
Nor ✓
Pol ✓
Ron ✓
Snd ✗
Spa ✓
Swe ✓
Tha ✓
Urd ✓
Passed 18 | Failed 4 | Total 22
2021-03-05 16:48:05 +01:00
John J. Camilleri
0d4659fe8c
Add workaround for missing param defs. Add links to gf-core issues in workaround comments.
2021-03-05 13:23:00 +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
70581c2d8c
Improve base case in table handling, cleanup. Add run-phrasebook script, current output:
...
Bul ✗
Cat ✗
Chi ✓
Dan ✓
Dut ✓
Eng ✓
Est ✓
Fin ✗
Fre ✗
Ger ✓
Hin ✓
Ita ✗
Jpn ✓
Lav ✓
Nor ✓
Pol ✓
Ron ✓
Snd ✗
Spa ✗
Swe ✓
Tha ✓
Urd ✓
Passed 15 | Failed 7 | Total 22
2021-03-04 17:09:35 +01:00
John J. Camilleri
bca1e2286d
New handling of tables, works for all tests but Phrasebook still fails
2021-03-04 16:42:56 +01:00