Commit Graph

  • 5b96ede199 Work in progress with marshalling in Python bindings, trying to get Type_str to work without segfaulting John J. Camilleri 2021-09-06 23:49:53 +02:00
  • 1ec4949d90 added working transactions. still not atomic krangelov 2021-09-06 19:40:24 +02:00
  • 29557ae61e bugfix in the FFI for pgf_function_prob krangelov 2021-09-06 19:25:56 +02:00
  • 691d3389f7 bugfix in PgfDBUnmarshaller::dtyp krangelov 2021-09-06 19:16:26 +02:00
  • 9cea2cc70e change the API to allow different grammar revisions krangelov 2021-09-06 15:49:39 +02:00
  • b7cddf206b First attempts at marshalling in Python bindings, not really sure what I'm doing John J. Camilleri 2021-09-06 15:32:18 +02:00
  • d58c744361 Implement PGF_getStartCat in Python bindings John J. Camilleri 2021-09-06 14:15:28 +02:00
  • a8efc61579 Working readType, functionType, unmarshaller for types (except exprs) in Python bindings John J. Camilleri 2021-09-06 14:06:57 +02:00
  • 9a2d2b345d an unsafe API for adding functions to the grammar. breaks referential transparency krangelov 2021-09-04 07:10:04 +02:00
  • 55d30d70f5 added PgfDBUnmarshaller krangelov 2021-09-04 05:59:11 +02:00
  • b4838649f5 linear time loading of namespaces krangelov 2021-09-03 21:10:26 +02:00
  • 2e0c93c594 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-03 20:02:22 +02:00
  • 4c5aad5883 use reference counting to release the namespaces krangelov 2021-09-03 20:01:13 +02:00
  • fb2454767a add method "free" krangelov 2021-09-03 19:58:28 +02:00
  • 4655c2663a fix the memory allocator krangelov 2021-09-03 19:57:53 +02:00
  • 7f7fe59fc0 fix incorrect index krangelov 2021-09-03 19:55:02 +02:00
  • d53b7587f5 Fill in literal cases in Python unmarshaller (untested) John J. Camilleri 2021-09-03 15:26:10 +02:00
  • 3ecb937753 Start work on marshalling in Python bindings John J. Camilleri 2021-09-03 14:14:47 +02:00
  • 2daf9e2e19 Update abstract_expressions.md Krasimir Angelov 2021-08-31 21:57:13 +02:00
  • e03df47911 Update abstract_expressions.md Krasimir Angelov 2021-08-31 21:56:15 +02:00
  • 6c06a9f295 readExpr needs an additional call to mask_ krangelov 2021-08-31 20:02:49 +02:00
  • 3c8e96c3cd fix lint in the C version of PgfUnmarshaller krangelov 2021-08-31 19:39:06 +02:00
  • 7b9f5144f9 functionsByCat now supports strings containing \0 krangelov 2021-08-31 18:38:17 +02:00
  • 6b359a6362 Update abstract_expressions.md Krasimir Angelov 2021-08-31 13:01:04 +02:00
  • 4a0b1f2f67 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-08-31 10:21:45 +02:00
  • b1dd94e4b0 fix the testsuite failure after the second run krangelov 2021-08-31 10:20:51 +02:00
  • 8061a9e82a Replace uses of PyUnicode_FromString with PyUnicode_FromStringAndSize John J. Camilleri 2021-08-31 10:12:27 +02:00
  • 901c3f9086 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic John J. Camilleri 2021-08-31 10:07:55 +02:00
  • 32f6691024 Update error handling in Python bindings, using the new PGF_EXN_OTHER_ERROR John J. Camilleri 2021-08-31 10:07:42 +02:00
  • 5f5b0caba5 more the exception handling in a single place krangelov 2021-08-31 10:04:33 +02:00
  • 0bf7522291 expand the comment for PGF_EXN_OTHER_ERROR krangelov 2021-08-31 09:49:33 +02:00
  • a7321a2e5a Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-08-31 09:33:50 +02:00
  • e0288f46dc the namespace iterator now takes a PgfExn parameter like in the old runtime krangelov 2021-08-31 09:31:06 +02:00
  • 02dc4e83c5 Remove commented-out error-handling code John J. Camilleri 2021-08-31 09:16:16 +02:00
  • aecaa422ec Add getFunctionsByCat to Python bindings John J. Camilleri 2021-08-30 23:25:18 +02:00
  • b7bd5a4561 Add getCategories and getFunctions to Python bindings, but don't know how to handle errors? John J. Camilleri 2021-08-30 22:26:22 +02:00
  • 50e54d131b Add abstractName getter to Python bindings. Use line comments (//) to make navigating code easier. John J. Camilleri 2021-08-30 15:03:54 +02:00
  • ff30169cbf Update CI workflow with new Python test command John J. Camilleri 2021-08-30 13:46:34 +02:00
  • 3e4f2ba1a0 Use pytest for Python bindings test suite John J. Camilleri 2021-08-30 13:31:27 +02:00
  • 239fd02249 Add more test cases for read/boot failures, those which incorrectly fail are commented out John J. Camilleri 2021-08-30 13:22:49 +02:00
  • ad4600b5c4 Add bootNGF and readNGF to Python bindings John J. Camilleri 2021-08-30 10:38:10 +02:00
  • 5c5e26cc8d Test bootNGF and readNGF too, run tests on all three PGFs John J. Camilleri 2021-08-30 09:45:02 +02:00
  • f25b518186 Update abstract_expressions.md Krasimir Angelov 2021-08-27 18:25:46 +02:00
  • e9ec4cef67 fill in more gaps in the API krangelov 2021-08-27 15:05:42 +02:00
  • 3e7d80bf30 reading & showing unicode identifiers krangelov 2021-08-27 14:44:42 +02:00
  • 41ef5f9539 textdup is now safe in case of memory overflow krangelov 2021-08-27 13:03:11 +02:00
  • 5271ddd10b PgfPrinter::nprintf dynamically reallocates the printing buffer if needed krangelov 2021-08-27 11:57:58 +02:00
  • 8195f8b0cb support for unbounded integers krangelov 2021-08-27 11:31:10 +02:00
  • b47eb18f86 Minor additions to LPGF readme lpgf John J. Camilleri 2021-08-27 09:32:43 +02:00
  • 684f85ff94 hide PgfDBMarshaller krangelov 2021-08-26 19:49:27 +02:00
  • a00a7f4ba5 elaborate the comment about marshallers and unmarshallers krangelov 2021-08-26 18:01:25 +02:00
  • 5982dbc146 Update README.md Krasimir Angelov 2021-08-26 17:38:58 +02:00
  • 9b2813f48a Create abstract_expressions.md Krasimir Angelov 2021-08-26 17:38:28 +02:00
  • b28e891a6b a type annotated version of marshaller/unmarshaller krangelov 2021-08-26 17:27:34 +02:00
  • 59e54482a3 added PgfDBMarshaller krangelov 2021-08-26 16:36:37 +02:00
  • 69f74944e2 The unmarshaller is no longer stored in the PGF object but is passed explicitly to each function that needs it. krangelov 2021-08-26 16:14:56 +02:00
  • 0d9f2994a0 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-08-26 15:46:41 +02:00
  • 275addfcbe pretty printing for expressions and types krangelov 2021-08-26 15:46:16 +02:00
  • 03f02ae5d2 A bunch of superficial changes to the docs after reading through them carefully again John J. Camilleri 2021-08-24 11:27:10 +02:00
  • fdaf19a5d4 Bump version of Python bindings John J. Camilleri 2021-08-24 10:04:07 +02:00
  • 91adc09b1f Define LD_LIBRARY_PATH when running Python tests John J. Camilleri 2021-08-24 09:09:30 +02:00
  • beab2ad899 Update Python instructions, add simple testsuite (which fails with segmentation fault) John J. Camilleri 2021-08-24 09:05:16 +02:00
  • bedb46527d Move Thomas from current to previous on maintainers page John J. Camilleri 2021-08-17 10:18:34 +02:00
  • 0258a87257 Add IRC, Discord, SO links to "contribute" section at top of homepage John J. Camilleri 2021-08-17 09:57:50 +02:00
  • ef0e831c9e Update installation instructions from Hackage, source code John J. Camilleri 2021-08-17 09:38:20 +02:00
  • 8ec13b1030 Uncomment installation instructions from Hackage Inari Listenmaa 2021-08-16 09:07:59 +08:00
  • 07bda06fb2 missed a line krangelov 2021-08-14 21:16:20 +02:00
  • d28c5a0377 a hopefully better error management in the marshaller krangelov 2021-08-14 21:13:31 +02:00
  • 8b8028bdfe free_ref & free_me in PgfMarshaller too krangelov 2021-08-14 20:08:04 +02:00
  • 9db352b2bb bugfix krangelov 2021-08-14 18:51:16 +02:00
  • b627d4ceb0 fix typo krangelov 2021-08-13 20:33:00 +02:00
  • 0296f07651 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-08-13 19:29:39 +02:00
  • 6beac74265 a draft for the marshaller. still not in use krangelov 2021-08-13 19:25:12 +02:00
  • 221f0b7853 PgfUnmarshaller now mimics a C++ class. Allows for keeping state krangelov 2021-08-13 18:14:56 +02:00
  • 4fd70bc445 Add basic installation instructions John J. Camilleri 2021-08-13 10:47:06 +02:00
  • 9e5823c350 Tweak base upper bound in pgf2.cabal John J. Camilleri 2021-08-13 10:28:44 +02:00
  • 2346abeedb Tweaks to pgf2.cabal John J. Camilleri 2021-08-13 10:25:16 +02:00
  • 3e7926f22d Update pgf2.cabal, including bumping version to 2.0.0 John J. Camilleri 2021-08-13 10:20:49 +02:00
  • f35dff7c66 Add LD_LIBRARY_PATH to cabal test step John J. Camilleri 2021-08-13 10:04:21 +02:00
  • 1749908f6c Add --extra-lib-dirs to cabal command John J. Camilleri 2021-08-13 09:58:31 +02:00
  • d8e1e2c37d Add sudo to make install John J. Camilleri 2021-08-13 09:53:17 +02:00
  • 8877243701 Add tests to CI John J. Camilleri 2021-08-13 09:51:10 +02:00
  • 08bcd2f0b5 silence warnings krangelov 2021-08-13 08:28:30 +02:00
  • 1bc0cfd025 accidentally commited a wrong version of expr.cxx krangelov 2021-08-13 08:26:18 +02:00
  • 21044264fa forgot adding expr.cxx krangelov 2021-08-13 08:12:03 +02:00
  • 058526ec5d Remove Travis CI workflow, we use GitHub actions now John J. Camilleri 2021-08-12 15:27:10 +02:00
  • 974e8b0835 Typos in homepage John J. Camilleri 2021-08-12 15:20:29 +02:00
  • bbe4682c3d Update homepage John J. Camilleri 2021-08-12 15:19:17 +02:00
  • 2a8d4232ce Fun -> Cat krangelov 2021-08-12 14:45:49 +02:00
  • 352dedc26f forgot releasing a stable pointer krangelov 2021-08-12 14:45:05 +02:00
  • 7e35db47a6 export PGFError krangelov 2021-08-12 14:41:50 +02:00
  • edba4fda32 test that we can handle loading failures krangelov 2021-08-12 14:23:20 +02:00
  • a8403d48fa the unmarshaller should not be disposed twice in case of error krangelov 2021-08-12 14:16:19 +02:00
  • 3578355bd0 fix computing the size of the mapped area krangelov 2021-08-12 14:04:35 +02:00
  • 39f38ed0e2 added startCat krangelov 2021-08-12 12:39:05 +02:00
  • 01db0224be API for constructing types krangelov 2021-08-12 12:16:11 +02:00
  • 16dfcb938c more of the abstract API copied from the old runtimes krangelov 2021-08-12 12:06:50 +02:00
  • 0ece508716 added categoryProb, functionProb, functionIsConstructor krangelov 2021-08-12 11:10:27 +02:00
  • 72993a178a Merge branch 'majestic' of https://github.com/GrammaticalFramework/gf-core into majestic krangelov 2021-08-12 10:42:24 +02:00
  • f2da618e5d implemented categoryContext krangelov 2021-08-12 10:42:02 +02:00