John J. Camilleri
|
a7a20d72e7
|
Use preprocessing directive in module initialisation
|
2021-09-27 14:03:12 +02:00 |
|
John J. Camilleri
|
8c04eed5c3
|
Add bindings for global/abstract flag functions
|
2021-09-27 13:33:34 +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
|
6f94957857
|
Make Hypo its own class instead of using tuples
|
2021-09-27 09:00:46 +02:00 |
|
John J. Camilleri
|
28bb236248
|
Add deallocator functions to all classes
|
2021-09-26 15:45:34 +02:00 |
|
krangelov
|
4a0efda0e6
|
fix the handling of PGF_EXN_OTHER_ERROR
|
2021-09-25 08:11:05 +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
|
4719e509a5
|
Add FreePgfText function
|
2021-09-24 15:00:10 +02:00 |
|
John J. Camilleri
|
d0ce218ae1
|
Add helper functions for common conversions
|
2021-09-24 13:09:26 +02:00 |
|
John J. Camilleri
|
917c223db7
|
Add checkoutBranch function. Fix incorrect INCREF of non-Python object.
|
2021-09-24 11:47:46 +02:00 |
|
John J. Camilleri
|
139e851f22
|
Add null check before freeing DB
Was causing segfaults in load-failure tests
|
2021-09-24 08:20:31 +02:00 |
|
krangelov
|
e11e775a96
|
merge pgf_free and pgf_free_revision since otherwise we cannot control the finalizers in Haskell
|
2021-09-22 13:21: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
|
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 |
|
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 |
|
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
|
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
|
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
|
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
|
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
|
2f51c8471c
|
Fix conversion from PyUnicode to PgfText. Remove Python 2-style PyString macros.
|
2021-09-09 23:41:55 +02:00 |
|
John J. Camilleri
|
5eade6f111
|
Generalise error handling
|
2021-09-09 11:16:10 +02:00 |
|
krangelov
|
6e4681d46b
|
Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic
|
2021-09-09 07:21:11 +02:00 |
|
krangelov
|
3d4c6031d8
|
missing call to free after the call to pgf_abstract_name
|
2021-09-09 07:20:15 +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 |
|
John J. Camilleri
|
c9b7f8e5ee
|
Add exception object to parameters of updated function calls
|
2021-09-08 11:53:31 +02:00 |
|
krangelov
|
a843ddba55
|
better error handling which always reports the right file name
|
2021-09-07 15:54:27 +02:00 |
|
John J. Camilleri
|
e6d8b76dbf
|
Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic
# Conflicts:
# src/runtime/python/pypgf.c
|
2021-09-06 23:52:30 +02:00 |
|
John J. Camilleri
|
5b96ede199
|
Work in progress with marshalling in Python bindings, trying to get Type_str to work without segfaulting
|
2021-09-06 23:49:53 +02:00 |
|
krangelov
|
9cea2cc70e
|
change the API to allow different grammar revisions
|
2021-09-06 15:49:39 +02:00 |
|
John J. Camilleri
|
d58c744361
|
Implement PGF_getStartCat in Python bindings
|
2021-09-06 14:15:28 +02:00 |
|
John J. Camilleri
|
a8efc61579
|
Working readType, functionType, unmarshaller for types (except exprs) in Python bindings
|
2021-09-06 14:06:57 +02:00 |
|
John J. Camilleri
|
3ecb937753
|
Start work on marshalling in Python bindings
|
2021-09-03 14:14:47 +02:00 |
|
krangelov
|
7b9f5144f9
|
functionsByCat now supports strings containing \0
|
2021-08-31 18:38:17 +02:00 |
|
John J. Camilleri
|
8061a9e82a
|
Replace uses of PyUnicode_FromString with PyUnicode_FromStringAndSize
See https://github.com/GrammaticalFramework/gf-core/issues/130#issuecomment-908979886
|
2021-08-31 10:12:27 +02:00 |
|
John J. Camilleri
|
32f6691024
|
Update error handling in Python bindings, using the new PGF_EXN_OTHER_ERROR
|
2021-08-31 10:07:42 +02:00 |
|
krangelov
|
a7321a2e5a
|
Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic
|
2021-08-31 09:33:50 +02:00 |
|
krangelov
|
e0288f46dc
|
the namespace iterator now takes a PgfExn parameter like in the old runtime
|
2021-08-31 09:31:06 +02:00 |
|
John J. Camilleri
|
02dc4e83c5
|
Remove commented-out error-handling code
See https://github.com/GrammaticalFramework/gf-core/issues/130#issuecomment-908937688
|
2021-08-31 09:16:16 +02:00 |
|
John J. Camilleri
|
aecaa422ec
|
Add getFunctionsByCat to Python bindings
|
2021-08-30 23:25:18 +02:00 |
|