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
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
aarneranta
8a052edca2
an attempt to solve record extension overloading bug, commented out for the moment
2020-07-06 18:01:59 +02:00
aarneranta
1360723137
fixed issue #67 on order of record fields in overloading
2020-07-06 14:27:49 +02:00
John J. Camilleri
63a3a57620
Remove duplicate --gfo flag
...
Fixes #51
2020-06-16 14:59:14 +02:00
Inari Listenmaa
de8cc02ba5
Condense the unsupported token gluing as per John's suggestion
2020-06-05 19:39:31 +02:00
Inari Listenmaa
dbc7297d80
Don't output "\n **" if helpfulMsg is empty.
2020-06-04 20:19:06 +02:00
Inari Listenmaa
414c2a1a5f
Add clarification to Internal error in GeneratePMCFG
2020-06-04 19:57:55 +02:00
Inari Listenmaa
dca1fcd7fe
Add clarification to Unsupported token gluing (both good and bad case)
2020-06-04 19:57:38 +02:00
Inari Listenmaa
c0714b7d33
Add clarification to "expected foo, inferred bar" type of error msgs
2020-06-04 19:57:10 +02:00
Inari Listenmaa
a4e3bce6bb
Add clarification to "Pattern is not linear" error msg.
2020-06-04 19:56:31 +02:00
Inari Listenmaa
9a903c166f
Add suggestions to error messages that are caused by too few/many args
2020-06-04 17:56:13 +02:00
krangelov
0a915199e8
allow literals in the C shell
2020-05-20 20:18:47 +02:00
krangelov
733fdac755
restore the sequence ordering after -optimize-pgf
2020-03-15 19:57:47 +01:00
krangelov
3133900125
another bug related to mattern matching on multiword expression
2020-02-18 15:07:47 +01:00
krangelov
e15392e579
fix: pattern matching on strings should reconstruct the tokens after matching
2020-02-17 19:29:36 +01:00
krangelov
9604a6309c
fix the compilation of case insensitive grammars
2020-02-17 12:40:14 +01:00
Thomas Hallgren
28f53e801a
PGFService: revert unlexing change in PGFService to restore &+ behaviour
2019-11-18 13:20:41 +01:00
krangelov
30eef61f0a
more dead code
2019-09-20 16:15:28 +02:00
krangelov
29662350dc
removed more dead code
2019-09-20 10:49:29 +02:00
krangelov
4d79aa8b19
remove obsolete code
2019-09-20 10:37:50 +02:00
Thomas Hallgren
9d3badd8b2
GrammarToCanonical: bug fix: add missing case for Empty
2019-09-10 12:41:16 +02:00
John J. Camilleri
eab9fb88aa
Minor renamings in JSON format
2019-07-10 08:49:00 +02:00
John J. Camilleri
acd4a5e8cd
Address @heatherleaf's suggestions
2019-07-10 08:45:23 +02:00
John J. Camilleri
a4b1fb03aa
Whitespace fixes
2019-07-07 17:38:07 +02:00
John J. Camilleri
cb88b56016
Finish compile to PGF JSON, including JSON schema for resulting format.
2019-07-07 17:35:31 +02:00
John J. Camilleri
ecf9b41db0
Finish JSON conversion for abstract
2019-07-03 16:34:07 +02:00
John J. Camilleri
c5a75c482c
Start work on PGFtoJSON module. Add compiler flag -f json.
2019-07-03 15:07:31 +02:00
krangelov
32379a8d11
fully supported case-insensitive parsing/lookup
2019-06-30 08:48:23 +02:00
Aarne Ranta
b7249adf63
reordered error message for 'no overload'; might be even better to show complete types
2019-05-20 15:58:47 +02:00
Thomas Hallgren
86066d4b12
Eliminate the dependency on time-compat
...
It was only needed for compatibility with directory<1.2, but
directory>=1.2 has been shipped with ghc since ghc-7.6.
Note: time-compat-1.9.* (the current version) is a completely different
package, that does not provide the needed function toUTCTime, which
was provided in time-compat-0.1.*.
2019-05-15 12:05:38 +02:00
Thomas Hallgren
bea6aa1d2d
GF.Compile.CheckGrammar: discard bad 'lincat C = …' with a warning
...
e.g. if C is a fun and not a cat in the abstract syntax.
Discarding bad lincats prevents GF from generating malformed PGFs that
are rejected by the C run-time system.
I also added code to reject bad lincats with an error, but I left it
commented out since it seems a bit pedantic compared to GF's otherwise
rather sloppy grammar checking.
2019-04-25 17:02:42 +02:00
krangelov
c628e11c01
respect the probs option also when merging PGFs
2019-04-12 11:04:40 +02:00
krangelov
de53a7c4db
Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core
2019-03-26 12:21:52 +01:00
krangelov
1e9188ea60
bugfix in the pretty printer
2019-03-26 12:21:35 +01:00
Thomas Hallgren
a55c7c7889
GF.Compile.GrammarToCanonical: keep unreachable rows in tables
...
since unreachable rows can become reachable after grammar transformation.
Also export smart constructors for projection and selection.
2019-03-22 15:38:02 +01:00
Thomas Hallgren
0f53431221
GF.Grammar.Canonical: pretty printer: omit some redundant brackets
2019-03-20 14:39:42 +01:00
Thomas Hallgren
2979864752
GF.Compile.GrammarToCanonical: allow + in reg exps in pre { }
2019-03-14 16:52:37 +01:00
Thomas Hallgren
b11d7d93dc
GF.Grammar.Canonical: some Functor/Foldable/Traversable instances
2019-03-13 01:51:26 +01:00
Thomas Hallgren
ba9aeb3322
Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core
2019-03-12 22:34:00 +01:00
Thomas Hallgren
8e2424af49
GF.Grammar.Canonical: add TuplePattern and CommentedValue
2019-03-12 22:32:54 +01:00
Peter Ljunglöf
01b9e8da8d
canonical GF: flatten several concatenations into one json array, and parse the array back into concatenations
2019-03-08 18:33:56 +01:00
Peter Ljunglöf
926a5cf414
added parsing of json into canonical GF
2019-03-08 17:58:24 +01:00
Peter Ljunglöf
21140fc0c0
remove case expressions (no particular reason)
2019-03-08 17:57:02 +01:00
Peter Ljunglöf
3328279120
corrected json printing
...
some object labels must be preceded by ".", to not be in conflict with GF records (which are stored as json objects)
plus some minor bugfixes and cleaning
2019-03-08 17:35:35 +01:00