Commit Graph

  • e11e775a96 merge pgf_free and pgf_free_revision since otherwise we cannot control the finalizers in Haskell krangelov 2021-09-22 13:21:07 +02:00
  • 74c63b196f Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-22 11:16:52 +02:00
  • 58b8c2771e fix double release for stable pointers krangelov 2021-09-22 11:16:29 +02:00
  • be43b0ba35 fix variable type krangelov 2021-09-22 11:03:16 +02:00
  • 1d1d1aad81 small optimization krangelov 2021-09-22 11:02:45 +02:00
  • 04fcaaaac2 Declare context differently in Transaction_createCategory John J. Camilleri 2021-09-22 08:34:18 +02:00
  • 70566fc6d6 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-22 07:35:30 +02:00
  • 432bc26b23 bugfix in PgfExprProbEstimator krangelov 2021-09-22 07:35:07 +02:00
  • 60c9ab4c53 Fix handlers for 'with' syntax in Transaction object John J. Camilleri 2021-09-21 23:54:55 +02:00
  • 4af807c982 Fix createCategory. Add functionProbability. John J. Camilleri 2021-09-21 23:34:03 +02:00
  • b4b8572af3 Header and source file cleanup John J. Camilleri 2021-09-21 22:28:44 +02:00
  • 71dac482c8 Started adding support for 'with' construct, failing tests commented out John J. Camilleri 2021-09-21 17:23:38 +02:00
  • 6edf7e6405 Add Transaction type to Python bindings, get first tests working. John J. Camilleri 2021-09-21 14:55:20 +02:00
  • 7dba3465d0 Refactor modules in Python bindings. Start work on grammar-update functions, but without transactions. John J. Camilleri 2021-09-20 23:42:50 +02:00
  • e41feae82a database synchronization only on commit krangelov 2021-09-17 16:43:54 +02:00
  • 44b5d0f870 Add newNGF to Python bindings John J. Camilleri 2021-09-17 14:33:36 +02:00
  • 6359537894 Add last of tests from basic.hs to Python testsuite. Some tests with quoted identifiers skipped. John J. Camilleri 2021-09-17 13:53:53 +02:00
  • 348c348e14 the compiler can now boot and load an .ngf file krangelov 2021-09-17 13:15:58 +02:00
  • b583faa042 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-17 12:01:28 +02:00
  • 2e30c7f6cb bugfix krangelov 2021-09-17 12:01:14 +02:00
  • a3203143ba Add Type constructor, showType, mk[Dep]Hypo, bind type constants John J. Camilleri 2021-09-17 11:27:19 +02:00
  • ddb01b41be In case of exception, report the offending function krangelov 2021-09-17 11:22:18 +02:00
  • 3f31d86d0d errno is not set for FILE I/O so we do our best krangelov 2021-09-17 10:06:11 +02:00
  • a8bda009a4 Add and pass all the abstraction test cases. Some header cleanup. John J. Camilleri 2021-09-16 15:38:02 +02:00
  • b393efff59 Fix richcompare functions: second argument could be of any type John J. Camilleri 2021-09-16 13:28:30 +02:00
  • f456f09054 finally fix the test caused by the change in readNGF behaviour krangelov 2021-09-16 12:08:22 +02:00
  • 24a30b344e another fix krangelov 2021-09-16 12:04:25 +02:00
  • 89e99d829c fix the tests in richcompare krangelov 2021-09-16 11:50:50 +02:00
  • 56d47ad561 forgot to update the testsuite krangelov 2021-09-16 11:31:09 +02:00
  • c4fee30baf fix the compilation in Type_richcompare and simplify a bit krangelov 2021-09-16 11:26:40 +02:00
  • b408650125 createFunction now takes arity as argument krangelov 2021-09-16 11:04:45 +02:00
  • fc268a16df We can now compile abstract grammars krangelov 2021-09-16 10:59:48 +02:00
  • a79fff548d readNGF now fails if the file doesn't exist. Instead there is newNGF krangelov 2021-09-16 10:34:51 +02:00
  • 3d0450cb2a Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-15 19:59:09 +02:00
  • e00be98ac6 added writePGF krangelov 2021-09-15 19:58:42 +02:00
  • 238f01c9fc Add remaining Expr subclasses, tests failing John J. Camilleri 2021-09-15 16:27:58 +02:00
  • c6d6914688 switch to using FILE * in the reader krangelov 2021-09-15 08:06:18 +02:00
  • 9fe6ee3cce bugfixes for showContext & showType krangelov 2021-09-14 19:54:38 +02:00
  • a7bf47cb87 added showContext krangelov 2021-09-14 19:10:01 +02:00
  • 3675e5cfc6 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-14 17:33:43 +02:00
  • e82fb7f32f added exprProbability krangelov 2021-09-14 17:33:22 +02:00
  • fd61a6c0d3 Add ExprApp to Python bindings John J. Camilleri 2021-09-14 15:28:39 +02:00
  • 6ebb8e5fda Add ExprFun to Python bindings John J. Camilleri 2021-09-14 15:07:03 +02:00
  • 05813384e0 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-14 09:34:22 +02:00
  • 22f62be511 added PGF(pIdent,pExpr) krangelov 2021-09-14 09:34:00 +02:00
  • be5751060a Add showExpr and tests for it using variable expressions John J. Camilleri 2021-09-14 00:18:45 +02:00
  • 9e3d329528 Update behaviour for bindings to categoryContext when cat is non-existant John J. Camilleri 2021-09-13 22:44:04 +02:00
  • a715d029f7 Fix Haskell tests after changes to categoryContext and functionProb John J. Camilleri 2021-09-13 22:35:23 +02:00
  • e78e9102be Add variable expressions John J. Camilleri 2021-09-13 22:29:23 +02:00
  • cf7673525f the compiler now compiles with the new runtime krangelov 2021-09-13 18:32:57 +02:00
  • c5ce2fd4b7 Add ExprMeta type, with two basic tests John J. Camilleri 2021-09-13 16:18:32 +02:00
  • d8a7aef46b Add constructor for ExprLit, use it in tests John J. Camilleri 2021-09-13 15:47:15 +02:00
  • 7e747fbd17 int -> size_t John J. Camilleri 2021-09-13 15:23:07 +02:00
  • 3d25efd38a Add functionIsConstructor function John J. Camilleri 2021-09-13 15:15:16 +02:00
  • c83a31708d Add categoryContext function John J. Camilleri 2021-09-13 15:05:38 +02:00
  • 919fd5d83e Make Expr_str work for large (size > 1) and negative integers John J. Camilleri 2021-09-13 14:38:05 +02:00
  • 5f5bd7a83b Implement Expr_str correctly (but doesn't handle big ints yet) John J. Camilleri 2021-09-13 10:03:26 +02:00
  • cb6d385fc0 Un-skip read/boot tests John J. Camilleri 2021-09-13 09:13:36 +02:00
  • 6cb4bef521 added API for accessing flags krangelov 2021-09-12 12:57:45 +02:00
  • f1e1564228 the reader now controls the PGF version krangelov 2021-09-12 08:26:05 +02:00
  • a7f00a4e84 detect and report an attempt to load non .ngf file in readNGF krangelov 2021-09-12 08:11:10 +02:00
  • 375452063f fix the crashes krangelov 2021-09-11 23:32:50 +02:00
  • 08923a57b9 fix typo krangelov 2021-09-11 22:46:15 +02:00
  • 6cfa250b28 PgfDB::sync is now moved to the desctructor for DB_scope krangelov 2021-09-11 18:20:28 +02:00
  • 4e443374de restore the thread local declarations that were accidentally removed krangelov 2021-09-11 18:06:28 +02:00
  • ae0a6aa6b6 clean up everything after revision is not needed anymore. krangelov 2021-09-11 16:33:22 +02:00
  • 7f0eb34864 fix typo krangelov 2021-09-10 22:31:51 +02:00
  • 1b09e7293f implemented pgf_free_revision krangelov 2021-09-10 11:39:54 +02:00
  • 678d244b21 Trying to complete Type marshaller, keep getting segfaults John J. Camilleri 2021-09-10 00:28:16 +02:00
  • 2f51c8471c Fix conversion from PyUnicode to PgfText. Remove Python 2-style PyString macros. John J. Camilleri 2021-09-09 23:41:55 +02:00
  • 4739e3d779 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic John J. Camilleri 2021-09-09 20:42:07 +02:00
  • 8bc171d7a1 Remove int tag from ExprLitObject John J. Camilleri 2021-09-09 20:42:01 +02:00
  • 7c622d2621 fix the definition of PgfMarshallerVtbl for C krangelov 2021-09-09 17:58:18 +02:00
  • 2f9c784fed Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-09 17:34:12 +02:00
  • f7aad0c0e0 added createCategory, dropCategory krangelov 2021-09-09 17:33:25 +02:00
  • 5eade6f111 Generalise error handling John J. Camilleri 2021-09-09 11:16:10 +02:00
  • a44787fc4e forgot to add the type signature for pgf_drop_function in the header krangelov 2021-09-09 09:52:43 +02:00
  • 97c76a9030 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-09 09:47:44 +02:00
  • 28321cc023 added dropFunction krangelov 2021-09-09 09:47:26 +02:00
  • 175349175a Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic John J. Camilleri 2021-09-09 09:34:13 +02:00
  • 1d0c4e7c39 Handle unmarshalling of large ints in Python bindings John J. Camilleri 2021-09-09 09:34:05 +02:00
  • 0dae265b05 expand the comment about PgfExn krangelov 2021-09-09 07:25:57 +02:00
  • 36ccb7ac8f PGF_API -> PGF_API_DECL krangelov 2021-09-09 07:22:25 +02:00
  • 6e4681d46b Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-09 07:21:11 +02:00
  • 3d4c6031d8 missing call to free after the call to pgf_abstract_name krangelov 2021-09-09 07:20:15 +02:00
  • 9739344ca6 Support (small, size = 1) negative integers John J. Camilleri 2021-09-08 17:25:10 +02:00
  • 3b1907cd8c Add Expr and ExprLit types to Python bindings. Seem to work for readExpr. John J. Camilleri 2021-09-08 16:03:54 +02:00
  • 44ee5718e9 more friendly PgfDB::malloc krangelov 2021-09-08 14:27:52 +02:00
  • 9d63c8a903 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-08 14:10:33 +02:00
  • bcc33af36b added support for branches and explicit transaction commit krangelov 2021-09-08 14:09:23 +02:00
  • c9b7f8e5ee Add exception object to parameters of updated function calls John J. Camilleri 2021-09-08 11:53:31 +02:00
  • 2e846cdf59 added safeguard to ensure that PgfRevision is an actual object krangelov 2021-09-08 09:17:12 +02:00
  • f741bd9332 more functions could now fail with an exception krangelov 2021-09-07 17:18:03 +02:00
  • a843ddba55 better error handling which always reports the right file name krangelov 2021-09-07 15:54:27 +02:00
  • 8936e6211e add <*> to Applicative for Transaction krangelov 2021-09-07 13:31:28 +02:00
  • 31396e46e3 disable rtti krangelov 2021-09-07 13:19:02 +02:00
  • e1c23da0a6 forgot updating the header as well krangelov 2021-09-07 09:49:45 +02:00
  • 2444302482 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-07 09:45:59 +02:00
  • 4ea4450481 mark methods in PgfDB as internal krangelov 2021-09-07 09:45:30 +02:00
  • e6d8b76dbf Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic John J. Camilleri 2021-09-06 23:52:30 +02:00