krangelov
b0672afc67
fully implement the linearize command
2021-12-10 10:34:57 +01:00
krangelov
a3d680f317
restored graphvizAbstractTree
2021-12-04 16:05:24 +01:00
krangelov
3d1123eed4
restore graphvizParseTree
2021-12-04 14:12:23 +01:00
krangelov
06980404a9
correctly distinguish between fun and data judgements
2021-11-18 13:50:09 +01:00
krangelov
62d5ed5b42
small progress on PMCFG
2021-10-08 19:25:21 +02:00
krangelov
2a2d7269cf
remove the Term(Error) constructor. Better propagation of errors.
2021-10-05 19:31:12 +02:00
krangelov
3dc2af61a6
done with partial evaluation for records and variants
2021-09-24 15:00:34 +02:00
krangelov
348c348e14
the compiler can now boot and load an .ngf file
2021-09-17 13:15:58 +02:00
krangelov
22f62be511
added PGF(pIdent,pExpr)
2021-09-14 09:34:00 +02:00
krangelov
cf7673525f
the compiler now compiles with the new runtime
2021-09-13 18:32:57 +02:00
krangelov
155657709a
Merge branch 'master' into c-runtime
2021-07-30 11:20:04 +02:00
Inari Listenmaa
d2fb755fab
Merge branch 'master' into concrete-new
2021-07-06 09:37:22 +02:00
Meowyam
1e3de38ac4
remove redundant options
2021-07-06 15:22:59 +08:00
Meowyam
dff215504a
resolves GrammaticalFramework/gf-core/#97, without l
2021-07-06 15:00:17 +08:00
Meowyam
d53e1713c7
resolves GrammaticalFramework/gf-core/#97
2021-07-02 16:08:34 +08: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
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
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
57ce76dbc1
Add two more missing MonadFail imports
2020-09-05 20:57:30 +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
krangelov
0a915199e8
allow literals in the C shell
2020-05-20 20:18:47 +02:00
krangelov
084b345663
added option to show the probabilities of results
2019-09-20 08:09:54 +02:00
krangelov
a0cfe09e09
added option -number to limit the number of parse results
2019-09-20 07:18:58 +02:00
krangelov
acb70ccc1b
cleanup
2019-09-19 22:30:08 +02:00
Krasimir Angelov
5a2b200948
manually copy the "c-runtime" branch from the old repository.
2018-11-02 14:38:44 +01:00
Thomas Hallgren
effa818408
gf -cshell bug fix
...
The functions cExpr and hsExpr in GF.Command.Commands2 need to
handle string literals.
2018-10-16 16:23:54 +02:00
Aarne Ranta
8787b56def
option rf -paragraphs
2018-09-21 10:40:39 +02:00
Thomas Hallgren
820d2d503f
Fixes for GHC 8.4.1 compatibility
...
* In GHC 8.4.1, the operator <> has become a method of the Semigroup class
and is exported from the Prelude. This is unfortunate, since <> is also
exported from the standard library module Text.PrettyPrint, so in any
module that defines a pretty printer, there is likely to be an ambiguity.
This affects ~18 modules in GF. Solution:
import Prelude hiding (<>)
This works also in older versions of GHC, since GHC does't complain if
you hide something that doesn't exists.
* In GHC 8.4.1, Semigroup has become a superclass of Monoid. This means
that anywhere you define an instance of the Monoid class you also have to
define an instance in the Semigroup class.
This affects Data.Binary.Builder in GF. Solution: conditionally define
a Semigroup instance if compiling with base>=4.11 (ghc>=8.4.1)
2018-04-18 19:18:10 +02:00
Aarne Ranta
79feeaf5b8
new option linerize -tabtreebank for tab-separated treebank generation
2017-12-06 17:37:12 +01:00
Krasimir Angelov
0bb6b5968e
temporaryly fix GF.Command.Commands2
2017-10-05 21:09:38 +02:00
Krasimir Angelov
15d014abb8
the parser in the C runtime can now detect incomplete sentences just like the parser in the Haskell runtime. This is also reflected in all bindings.
2017-09-06 12:38:42 +02:00
Krasimir Angelov
c3297dd2e9
update documentation for command pt
2017-09-05 10:33:53 +02:00
Krasimir Angelov
01a8e1b88f
GF.Command.TreeOperations is now independent from the runtime's internals
2017-09-05 10:29:02 +02:00
Krasimir Angelov
13d8045814
added exprSize and exprFunctions in the Haskell runtime too and use them in TreeOperations
2017-09-05 10:16:48 +02:00
Krasimir Angelov
da091824a3
pt -paraphrase was never properly implemented and is now removed
2017-09-04 13:11:17 +02:00
Krasimir Angelov
1f908fa7bf
eliminate modules PGF.Lexing, PGF.LexingAGreek. Make PGF.Utilities an internal module in the runtime. These are not really part of the core runtime.
2017-09-04 11:43:37 +02:00
Krasimir Angelov
e214a00ed3
added command "rt" in the C shell
2017-09-01 10:40:12 +02:00
Krasimir Angelov
5c38482e56
the C shell now type checks expressions before they are used
2017-09-01 10:19:36 +02:00
Krasimir Angelov
d5a7945ba0
complete details for the "ai" command in the C shell
2017-09-01 09:57:00 +02:00
Krasimir Angelov
5a37660811
added function treeProbability in the Haskell binding
2017-09-01 08:46:52 +02:00
Krasimir Angelov
1182a9b63d
giza alignment in the C shell
2017-09-01 08:23:12 +02:00
Krasimir Angelov
b9c04fd612
graphvizWordAlignment in the C runtime
2017-08-31 13:03:11 +02:00
Krasimir Angelov
eaf9f0c3ac
the C runtime now supports the same customizations for GraphViz as the Haskell runtime
2017-08-31 10:58:49 +02:00
Krasimir Angelov
675ef4573c
remove move dead code in the C shell
2017-08-31 08:12:18 +02:00
Krasimir Angelov
16828fb91e
some dead code elimination
2017-08-30 20:42:04 +02:00