Commit Graph

7909 Commits

Author SHA1 Message Date
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
krangelov
44ee5718e9 more friendly PgfDB::malloc 2021-09-08 14:27:52 +02:00
krangelov
9d63c8a903 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-08 14:10:33 +02:00
krangelov
bcc33af36b added support for branches and explicit transaction commit 2021-09-08 14:09:23 +02:00
John J. Camilleri
c9b7f8e5ee Add exception object to parameters of updated function calls 2021-09-08 11:53:31 +02:00
krangelov
2e846cdf59 added safeguard to ensure that PgfRevision is an actual object 2021-09-08 09:17:12 +02:00
krangelov
f741bd9332 more functions could now fail with an exception 2021-09-07 17:18:03 +02:00
krangelov
a843ddba55 better error handling which always reports the right file name 2021-09-07 15:54:27 +02:00
krangelov
8936e6211e add <*> to Applicative for Transaction 2021-09-07 13:31:28 +02:00
krangelov
31396e46e3 disable rtti 2021-09-07 13:19:02 +02:00
krangelov
e1c23da0a6 forgot updating the header as well 2021-09-07 09:49:45 +02:00
krangelov
2444302482 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-07 09:45:59 +02:00
krangelov
4ea4450481 mark methods in PgfDB as internal 2021-09-07 09:45:30 +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
1ec4949d90 added working transactions. still not atomic 2021-09-06 19:40:24 +02:00
krangelov
29557ae61e bugfix in the FFI for pgf_function_prob 2021-09-06 19:25:56 +02:00
krangelov
691d3389f7 bugfix in PgfDBUnmarshaller::dtyp 2021-09-06 19:16:26 +02:00
krangelov
9cea2cc70e change the API to allow different grammar revisions 2021-09-06 15:49:39 +02:00
John J. Camilleri
b7cddf206b First attempts at marshalling in Python bindings, not really sure what I'm doing 2021-09-06 15:32:18 +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
krangelov
9a2d2b345d an unsafe API for adding functions to the grammar. breaks referential transparency 2021-09-04 07:10:04 +02:00
krangelov
55d30d70f5 added PgfDBUnmarshaller 2021-09-04 05:59:11 +02:00
krangelov
b4838649f5 linear time loading of namespaces 2021-09-03 21:10:26 +02:00
krangelov
2e0c93c594 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-03 20:02:22 +02:00
krangelov
4c5aad5883 use reference counting to release the namespaces 2021-09-03 20:01:13 +02:00
krangelov
fb2454767a add method "free" 2021-09-03 19:58:28 +02:00
krangelov
4655c2663a fix the memory allocator 2021-09-03 19:57:53 +02:00
krangelov
7f7fe59fc0 fix incorrect index 2021-09-03 19:55:02 +02:00
John J. Camilleri
d53b7587f5 Fill in literal cases in Python unmarshaller (untested) 2021-09-03 15:26:10 +02:00
John J. Camilleri
3ecb937753 Start work on marshalling in Python bindings 2021-09-03 14:14:47 +02:00
Krasimir Angelov
2daf9e2e19 Update abstract_expressions.md 2021-08-31 21:57:13 +02:00
Krasimir Angelov
e03df47911 Update abstract_expressions.md 2021-08-31 21:56:15 +02:00
krangelov
6c06a9f295 readExpr needs an additional call to mask_ 2021-08-31 20:02:49 +02:00
krangelov
3c8e96c3cd fix lint in the C version of PgfUnmarshaller 2021-08-31 19:39:06 +02:00
krangelov
7b9f5144f9 functionsByCat now supports strings containing \0 2021-08-31 18:38:17 +02:00
Krasimir Angelov
6b359a6362 Update abstract_expressions.md 2021-08-31 13:01:04 +02:00
krangelov
4a0b1f2f67 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-08-31 10:21:45 +02:00
krangelov
b1dd94e4b0 fix the testsuite failure after the second run 2021-08-31 10:20:51 +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
901c3f9086 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-08-31 10:07:55 +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
5f5b0caba5 more the exception handling in a single place 2021-08-31 10:04:33 +02:00
krangelov
0bf7522291 expand the comment for PGF_EXN_OTHER_ERROR 2021-08-31 09:49:33 +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
John J. Camilleri
b7bd5a4561 Add getCategories and getFunctions to Python bindings, but don't know how to handle errors? 2021-08-30 22:26:22 +02:00