Commit Graph

8080 Commits

Author SHA1 Message Date
krangelov
2b725861fb mark 10000000000000000000 as UL 2021-09-27 19:47:24 +02:00
John J. Camilleri
8c3f9c8d73 Use PyBool instead of PyLong for bind_type 2021-09-27 15:37:33 +02:00
John J. Camilleri
7dafeee57b Raise KeyError in prob functions for undefined functions/categories 2021-09-27 14:33:14 +02:00
John J. Camilleri
19251e5e61 Add exprProbability 2021-09-27 14:22:13 +02:00
krangelov
af45e96108 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-27 14:12:24 +02:00
krangelov
38de1bf924 pgf_category_prob should return INFINITY for non-existant categories 2021-09-27 14:11:52 +02:00
John J. Camilleri
a7a20d72e7 Use preprocessing directive in module initialisation 2021-09-27 14:03:12 +02:00
krangelov
455fd07e12 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-27 13:46:49 +02:00
krangelov
6d234a7d7e bugfix 2021-09-27 13:46:37 +02:00
John J. Camilleri
02d180ad88 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-27 13:33:52 +02:00
John J. Camilleri
8c04eed5c3 Add bindings for global/abstract flag functions 2021-09-27 13:33:34 +02:00
krangelov
6c2d180544 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-27 13:29:11 +02:00
krangelov
d1e6b78a45 overload ExprApp for backward compatibility 2021-09-27 13:28:53 +02:00
John J. Camilleri
6ce619c146 Solve the mystery of the segfaults when reading args in createCategory
it was a missing `&`
2021-09-27 11:51:58 +02:00
John J. Camilleri
2deae9d402 Add PGF.writeToFile. Add categoryProbability, but it seems pgf_category_prob always returns 0. 2021-09-27 11:37:52 +02:00
John J. Camilleri
187ded6d3d Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-27 09:40:59 +02:00
John J. Camilleri
6f94957857 Make Hypo its own class instead of using tuples 2021-09-27 09:00:46 +02:00
krangelov
561862e1bd restore Expr_unpack 2021-09-27 08:53:43 +02:00
krangelov
07c3f4b88a fix Expr_visit 2021-09-27 07:27:44 +02:00
krangelov
4dcf43dbf3 make all members READONLY to avoid crashes later 2021-09-27 06:18:33 +02:00
krangelov
97ca7b112c remove Expr_getsetters 2021-09-27 06:15:00 +02:00
krangelov
fbd0be2c3e restore Expr_visit 2021-09-27 06:12:14 +02:00
krangelov
b12e8a6969 fix Expr_call 2021-09-27 05:30:00 +02:00
krangelov
809a02f3bc added Expr_subclass_new 2021-09-26 22:54:09 +02:00
krangelov
3716990b8d remove the redundany _new functions 2021-09-26 21:02:57 +02:00
krangelov
729a3102b4 added Expr_new and Expr_reduce_ex for backward compatibility 2021-09-26 20:34:36 +02:00
John J. Camilleri
28bb236248 Add deallocator functions to all classes 2021-09-26 15:45:34 +02:00
John J. Camilleri
1fce5144f8 Rename fields to match those in runtime. Use tp_members instead of tp_getattro for getters. 2021-09-26 15:14:04 +02:00
krangelov
4a0efda0e6 fix the handling of PGF_EXN_OTHER_ERROR 2021-09-25 08:11:05 +02:00
krangelov
f82f19ba68 better error handling 2021-09-24 19:54:29 +02:00
krangelov
f83ea160da more patterns in the partial evaluator 2021-09-24 19:14:48 +02:00
krangelov
466fd4a7da Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-24 17:20:48 +02:00
krangelov
c5b6432016 implemented tables and parameters 2021-09-24 17:20:25 +02:00
John J. Camilleri
a46b91fe10 Missed one 'free' 2021-09-24 16:13:36 +02:00
John J. Camilleri
a2e4e74644 Add getters for Type and Expr attributes, with tests 2021-09-24 16:10:48 +02:00
krangelov
ad9fbdef6f added test case for parameters 2021-09-24 15:55:59 +02:00
krangelov
eba37f5b09 fix typo 2021-09-24 15:49:41 +02:00
krangelov
d294033822 added more tests 2021-09-24 15:43:53 +02:00
krangelov
886592f345 renamed tests 2021-09-24 15:41:05 +02:00
krangelov
ac304ccd7c more low-handing fruits in the partial evaluator 2021-09-24 15:14:52 +02:00
krangelov
dea2176115 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-24 15:01:01 +02:00
krangelov
3dc2af61a6 done with partial evaluation for records and variants 2021-09-24 15:00:34 +02:00
John J. Camilleri
4719e509a5 Add FreePgfText function 2021-09-24 15:00:10 +02:00
krangelov
d17ca06faf Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-24 13:57:29 +02:00
krangelov
a9a8ed8bf3 fix the dependency on librt 2021-09-24 13:57:11 +02:00
John J. Camilleri
fc12749124 Complete transaction tests 2021-09-24 13:46:46 +02:00
krangelov
2c01eab355 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-24 13:36:21 +02:00
krangelov
d72017409a added -lrt 2021-09-24 13:35:51 +02:00
John J. Camilleri
90b7134eef Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-24 13:09:36 +02:00
John J. Camilleri
d0ce218ae1 Add helper functions for common conversions 2021-09-24 13:09:26 +02:00