Krasimir Angelov
|
9a6d5a99bf
|
partial implementation for deserialization with daison
|
2023-09-01 11:56:23 +02:00 |
|
Krasimir Angelov
|
22c41367ec
|
fix typo
|
2023-08-25 18:09:16 +02:00 |
|
Krasimir Angelov
|
58b1a9a535
|
added hashing for expressions
|
2023-05-31 09:15:33 +02:00 |
|
krangelov
|
19338a8de1
|
fix typo
|
2021-10-22 09:20:38 +02:00 |
|
krangelov
|
0eb6e9f724
|
fix reference counting
|
2021-10-16 20:12:53 +02:00 |
|
krangelov
|
5e335a7df2
|
add unpack & __reduce_ex__ for backward compatibility
|
2021-10-16 19:57:47 +02:00 |
|
krangelov
|
382456415e
|
overload pgf.Type for backward compatibility and support for dependent and simple types
|
2021-10-16 19:50:01 +02:00 |
|
John J. Camilleri
|
16eb5f1a89
|
Type initialiser accepts sequences, stores internally as tuples. Add tests which try to break things.
|
2021-09-28 11:58:22 +02:00 |
|
John J. Camilleri
|
388829d63d
|
Make hypos tuples again 😥
|
2021-09-28 10:35:19 +02:00 |
|
John J. Camilleri
|
8c3f9c8d73
|
Use PyBool instead of PyLong for bind_type
|
2021-09-27 15:37:33 +02:00 |
|
krangelov
|
6d234a7d7e
|
bugfix
|
2021-09-27 13:46:37 +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
|
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 |
|
John J. Camilleri
|
a2e4e74644
|
Add getters for Type and Expr attributes, with tests
|
2021-09-24 16:10:48 +02:00 |
|
John J. Camilleri
|
b4b8572af3
|
Header and source file cleanup
|
2021-09-21 22:28:44 +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 |
|
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 |
|
John J. Camilleri
|
a3203143ba
|
Add Type constructor, showType, mk[Dep]Hypo, bind type constants
|
2021-09-17 11:27:19 +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
|
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
|
c4fee30baf
|
fix the compilation in Type_richcompare and simplify a bit
|
2021-09-16 11:26:40 +02:00 |
|
John J. Camilleri
|
238f01c9fc
|
Add remaining Expr subclasses, tests failing
|
2021-09-15 16:27:58 +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 |
|
John J. Camilleri
|
e78e9102be
|
Add variable expressions
|
2021-09-13 22:29:23 +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
|
5f5bd7a83b
|
Implement Expr_str correctly (but doesn't handle big ints yet)
|
2021-09-13 10:03:26 +02:00 |
|
krangelov
|
375452063f
|
fix the crashes
|
2021-09-11 23:32:50 +02:00 |
|
John J. Camilleri
|
2f51c8471c
|
Fix conversion from PyUnicode to PgfText. Remove Python 2-style PyString macros.
|
2021-09-09 23:41:55 +02:00 |
|
John J. Camilleri
|
8bc171d7a1
|
Remove int tag from ExprLitObject
|
2021-09-09 20:42:01 +02:00 |
|
John J. Camilleri
|
5eade6f111
|
Generalise error handling
|
2021-09-09 11:16:10 +02:00 |
|
John J. Camilleri
|
1d0c4e7c39
|
Handle unmarshalling of large ints in Python bindings
|
2021-09-09 09:34:05 +02:00 |
|
John J. Camilleri
|
3b1907cd8c
|
Add Expr and ExprLit types to Python bindings. Seem to work for readExpr.
|
2021-09-08 16:03:54 +02:00 |
|