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
23e49cddb7
Add support for SOFT_BIND (which PGF runtime doesn't support)
2021-02-16 14:51:29 +01:00
John J. Camilleri
4d1217b06d
Add support for pre
2021-02-15 21:57:05 +01:00
John J. Camilleri
4f0abe5540
Add FoodsFre, fails because pre is not implemented
...
Also an unhandled Projection case
2021-02-15 01:14:34 +01:00
John J. Camilleri
a58a6c8a59
Add FoodsFin to testsuite (fails)
2021-02-13 00:16:03 +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
a12f58e7b0
Add test case for selection using records (fails)
2021-02-10 13:55:38 +01:00
John J. Camilleri
d5f68970b9
Add FoodsSwe (fails)
2021-02-09 10:54:51 +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
42b9e7036e
Support dynamic param values
2021-02-03 13:16:10 +01:00
John J. Camilleri
132f693713
Minor cleanup
2021-02-03 09:44:15 +01:00
John J. Camilleri
153bffdad7
Support nested parameters, but fails with non-static values (see FoodsBull, ASg kind.g).
2021-02-03 00:11:22 +01:00
John J. Camilleri
d09838e97e
Separate .trees and .treebank, and add a script for making the latter from the former
2021-02-02 21:46:38 +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
6f622b496b
Rename Zero grammar to Walking
2021-01-26 09:35:21 +01:00
John J. Camilleri
270e7f021f
Add binary instances
2021-01-25 14:42:00 +01:00
John J. Camilleri
32b0860925
Make LPGF testsuite work (but still fails)
...
stack test :lpgf
2021-01-25 13:41:33 +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
Andreas Källberg
05903b271c
Fix testsuite compatability with newer Cabal
2020-08-05 18:48:24 +02:00
hallgren
dd1b474a22
testsuite: fix test of generate_trees
...
There were two differences between the current output and the old gold file:
1. The trees are no longer generated with increasing depth
2. The meaning of the -depth flag has changed: for example,
"gt -cat=Nat -depth=1" used to generate only "zero",
now you also get "succ zero".
2013-12-10 16:49:40 +00:00
hallgren
953c6e8fb5
testsuite: reduced the number of failing tests from 25 to 13
...
Some tests may fail on Windows because of \ instead of / in paths.
2013-12-06 16:01:13 +00:00
hallgren
f5cda1e6a3
testsuite: Use Cabal's new test suite interface
...
* The old way: a user hook in Setup.hs
* The new way: specify it in gf.cabal
* The test suite is now called gf-tests, and it runs testsuite/run.hs.
* You can run it manually with 'runhaskell testsuite/run.hs'. It also runs,
together with rgl-tests, when you do 'cabal test'
* Currently only 9 of 34 tests pass. Many failures have silly causes:
- Error messages that look slightly different
- Same output but in a different order
- Absolute paths in output
2013-12-03 17:13:39 +00:00
hallgren
6b3ba6d3ba
testsuite: use forward slashes in paths
2013-12-03 16:59:33 +00:00
hallgren
621291a575
Compute.ConcreteNew: add missing case for variant functions
...
Also adding a test case in the test suite for this.
2012-12-10 13:25:32 +00:00
hallgren
c8c81f77f7
Adding test case for interaction between record subtyping and record extension
2011-09-19 12:43:14 +00:00
krasimir
37d0200c7f
added testsuite for the parser
2011-01-10 10:34:09 +00:00
krasimir
5941995c59
fix the computation of abstract expressions in the presence of implicit arguments
2011-01-08 20:55:58 +00:00
krasimir
d465292fde
bugfix in the handling of implicit arguments in the typechecker
2011-01-08 12:55:50 +00:00
krasimir
0c4f5030c7
update the testsuite for the parser to the latest API
2010-12-13 17:53:06 +00:00
krasimir
115b4213d5
operations in the abstract syntax
2010-11-12 19:37:19 +00:00
krasimir
119f7bc78a
update the testsuite. Now we can typecheck more programs than before
2010-10-27 17:58:40 +00:00
krasimir
0ba1daf5eb
when faced with hard unification problem the type checker should just postpone the decision instead of failing immediately. added test case as well
2010-10-25 15:47:33 +00:00
krasimir
2aea03a614
update the testsuite to the latest state of the compiler/interpreter
2010-10-25 11:50:41 +00:00
ramona.enache
b0f7db3270
added script for testing the phrasebooks
2010-05-08 13:49:41 +00:00
krasimir
029fbec8f3
test for bracketedLinearize
2010-05-01 20:54:31 +00:00
krasimir
af5f12d672
upgrade the testsuite to work with GHC 6.12
2010-04-30 19:27:53 +00:00
krasimir
9253ee6010
fix parsing of literals
2010-04-23 20:46:14 +00:00
krasimir
09da1013f9
refactor PGF.Expr and PGF.TypeCheck so that the evaluator always has access to the meta store
2010-02-22 15:50:41 +00:00
krasimir
59d640088e
bugfix in PGF.TypeCheck
2010-02-20 18:48:06 +00:00
krasimir
d09b05ab3f
one more test for cyclic def rules
2010-02-16 20:27:07 +00:00
krasimir
ea85cd1078
one more test for cyclic operations
2010-02-09 18:38:11 +00:00
krasimir
a1c70841c1
test case for lazy evaluation in the abstract syntax
2010-02-07 22:22:30 +00:00
krasimir
c1d2ed1a7b
test case for invalid parameter definition
2010-02-06 20:15:46 +00:00
krasimir
563e65c309
test case for let expression in def rule
2010-02-01 09:18:42 +00:00
krasimir
1cd4a500f5
added tests for literals in the abstract syntax
2010-02-01 08:58:46 +00:00