Commit Graph

7989 Commits

Author SHA1 Message Date
krangelov
70566fc6d6 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-22 07:35:30 +02:00
krangelov
432bc26b23 bugfix in PgfExprProbEstimator 2021-09-22 07:35:07 +02:00
John J. Camilleri
60c9ab4c53 Fix handlers for 'with' syntax in Transaction object 2021-09-21 23:54:55 +02:00
John J. Camilleri
4af807c982 Fix createCategory. Add functionProbability. 2021-09-21 23:34:03 +02:00
John J. Camilleri
b4b8572af3 Header and source file cleanup 2021-09-21 22:28:44 +02:00
John J. Camilleri
71dac482c8 Started adding support for 'with' construct, failing tests commented out 2021-09-21 17:23:38 +02:00
John J. Camilleri
6edf7e6405 Add Transaction type to Python bindings, get first tests working. 2021-09-21 14:55:20 +02:00
John J. Camilleri
7dba3465d0 Refactor modules in Python bindings. Start work on grammar-update functions, but without transactions. 2021-09-20 23:42:50 +02:00
krangelov
e41feae82a database synchronization only on commit 2021-09-17 16:43:54 +02:00
John J. Camilleri
44b5d0f870 Add newNGF to Python bindings 2021-09-17 14:33:36 +02:00
John J. Camilleri
6359537894 Add last of tests from basic.hs to Python testsuite. Some tests with quoted identifiers skipped. 2021-09-17 13:53:53 +02:00
krangelov
348c348e14 the compiler can now boot and load an .ngf file 2021-09-17 13:15:58 +02:00
krangelov
b583faa042 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-17 12:01:28 +02:00
krangelov
2e30c7f6cb bugfix 2021-09-17 12:01:14 +02:00
John J. Camilleri
a3203143ba Add Type constructor, showType, mk[Dep]Hypo, bind type constants 2021-09-17 11:27:19 +02:00
krangelov
ddb01b41be In case of exception, report the offending function 2021-09-17 11:22:18 +02:00
krangelov
3f31d86d0d errno is not set for FILE I/O so we do our best 2021-09-17 10:06:11 +02:00
John J. Camilleri
a8bda009a4 Add and pass all the abstraction test cases. Some header cleanup. 2021-09-16 15:38:02 +02:00
John J. Camilleri
b393efff59 Fix richcompare functions: second argument could be of any type 2021-09-16 13:28:30 +02:00
krangelov
f456f09054 finally fix the test caused by the change in readNGF behaviour 2021-09-16 12:08:22 +02:00
krangelov
24a30b344e another fix 2021-09-16 12:04:25 +02:00
krangelov
89e99d829c fix the tests in richcompare 2021-09-16 11:50:50 +02:00
krangelov
56d47ad561 forgot to update the testsuite 2021-09-16 11:31:09 +02:00
krangelov
c4fee30baf fix the compilation in Type_richcompare and simplify a bit 2021-09-16 11:26:40 +02:00
krangelov
b408650125 createFunction now takes arity as argument 2021-09-16 11:04:45 +02:00
krangelov
fc268a16df We can now compile abstract grammars 2021-09-16 10:59:48 +02:00
krangelov
a79fff548d readNGF now fails if the file doesn't exist. Instead there is newNGF 2021-09-16 10:34:51 +02:00
krangelov
3d0450cb2a Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-15 19:59:09 +02:00
krangelov
e00be98ac6 added writePGF 2021-09-15 19:58:42 +02:00
John J. Camilleri
238f01c9fc Add remaining Expr subclasses, tests failing 2021-09-15 16:27:58 +02:00
krangelov
c6d6914688 switch to using FILE * in the reader 2021-09-15 08:06:18 +02:00
krangelov
9fe6ee3cce bugfixes for showContext & showType 2021-09-14 19:54:38 +02:00
krangelov
a7bf47cb87 added showContext 2021-09-14 19:10:01 +02:00
krangelov
3675e5cfc6 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-14 17:33:43 +02:00
krangelov
e82fb7f32f added exprProbability 2021-09-14 17:33:22 +02:00
John J. Camilleri
fd61a6c0d3 Add ExprApp to Python bindings 2021-09-14 15:28:39 +02:00
John J. Camilleri
6ebb8e5fda Add ExprFun to Python bindings 2021-09-14 15:07:03 +02:00
krangelov
05813384e0 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-14 09:34:22 +02:00
krangelov
22f62be511 added PGF(pIdent,pExpr) 2021-09-14 09:34:00 +02:00
John J. Camilleri
be5751060a Add showExpr and tests for it using variable expressions 2021-09-14 00:18:45 +02:00
John J. Camilleri
9e3d329528 Update behaviour for bindings to categoryContext when cat is non-existant 2021-09-13 22:44:04 +02:00
John J. Camilleri
a715d029f7 Fix Haskell tests after changes to categoryContext and functionProb 2021-09-13 22:35:23 +02:00
John J. Camilleri
e78e9102be Add variable expressions 2021-09-13 22:29:23 +02:00
krangelov
cf7673525f the compiler now compiles with the new runtime 2021-09-13 18:32:57 +02:00
John J. Camilleri
c5ce2fd4b7 Add ExprMeta type, with two basic tests 2021-09-13 16:18:32 +02:00
John J. Camilleri
d8a7aef46b Add constructor for ExprLit, use it in tests 2021-09-13 15:47:15 +02:00
John J. Camilleri
7e747fbd17 int -> size_t 2021-09-13 15:23:07 +02:00
John J. Camilleri
3d25efd38a Add functionIsConstructor function 2021-09-13 15:15:16 +02:00
John J. Camilleri
c83a31708d Add categoryContext function 2021-09-13 15:05:38 +02:00
John J. Camilleri
919fd5d83e Make Expr_str work for large (size > 1) and negative integers 2021-09-13 14:38:05 +02:00