Commit Graph

  • 634508eaa8 Add linting John J. Camilleri 2021-10-04 15:26:50 +02:00
  • 1f72ef77c4 Add bootNGF. Organise tests better. John J. Camilleri 2021-10-04 15:07:23 +02:00
  • 7551926383 Add FFI bindings for all API functions. Implement getCategories and getFunctions John J. Camilleri 2021-10-04 14:15:35 +02:00
  • 45db11b669 Add proper tests, exception handling, implement getAbstractName John J. Camilleri 2021-10-04 12:10:29 +02:00
  • 314db3ea7f Beginnings of JavaScript bindings John J. Camilleri 2021-10-01 12:47:39 +02:00
  • e6960e30f6 fix the estimation of the character size in PgfExprParser::putc krangelov 2021-10-01 12:22:15 +02:00
  • c21627950a remove the accidentally added debug messages krangelov 2021-10-01 12:01:05 +02:00
  • 0708f6e0cc when at EOF don't try to read further krangelov 2021-10-01 11:57:31 +02:00
  • ad0832903a Add FreeHypos function. Remove old Python 2 preproc definition John J. Camilleri 2021-09-30 10:45:01 +02:00
  • 0fa739e6e3 one more test krangelov 2021-09-30 05:18:02 +02:00
  • 0229329d7c implemented pattern macros krangelov 2021-09-29 17:38:53 +02:00
  • 6efb878c43 pattern matching for "x"* krangelov 2021-09-29 14:57:18 +02:00
  • edd7081dea implement measured patterns krangelov 2021-09-29 13:26:06 +02:00
  • 2137324f81 safe pattern matching in the presence of a variable krangelov 2021-09-29 09:32:09 +02:00
  • 86326d282f pattern matching on strings krangelov 2021-09-29 09:18:52 +02:00
  • fee186feca fix table selection with meta variables and lambda variables krangelov 2021-09-28 13:49:35 +02:00
  • 808e8db141 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic John J. Camilleri 2021-09-28 11:58:31 +02:00
  • 16eb5f1a89 Type initialiser accepts sequences, stores internally as tuples. Add tests which try to break things. John J. Camilleri 2021-09-28 11:58:22 +02:00
  • 28dd0eda22 evaluation for Prod krangelov 2021-09-28 11:47:31 +02:00
  • 0771906206 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-28 11:13:58 +02:00
  • fcad8dd3e2 no more space leaks krangelov 2021-09-28 11:13:45 +02:00
  • 67f83ebf8a don't add_ref if the revision doesn't exist krangelov 2021-09-28 11:12:12 +02:00
  • 388829d63d Make hypos tuples again 😥 John J. Camilleri 2021-09-28 10:35:19 +02:00
  • 9863f32d05 fix a memory leak krangelov 2021-09-28 09:53:40 +02:00
  • 5334174923 fix reference counting but valgrind says that there are more leaks krangelov 2021-09-27 20:24:57 +02:00
  • 2b725861fb mark 10000000000000000000 as UL krangelov 2021-09-27 19:47:24 +02:00
  • 8c3f9c8d73 Use PyBool instead of PyLong for bind_type John J. Camilleri 2021-09-27 15:37:33 +02:00
  • 7dafeee57b Raise KeyError in prob functions for undefined functions/categories John J. Camilleri 2021-09-27 14:33:14 +02:00
  • 19251e5e61 Add exprProbability John J. Camilleri 2021-09-27 14:22:13 +02:00
  • af45e96108 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-27 14:12:24 +02:00
  • 38de1bf924 pgf_category_prob should return INFINITY for non-existant categories krangelov 2021-09-27 14:11:52 +02:00
  • a7a20d72e7 Use preprocessing directive in module initialisation John J. Camilleri 2021-09-27 14:03:12 +02:00
  • 455fd07e12 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-27 13:46:49 +02:00
  • 6d234a7d7e bugfix krangelov 2021-09-27 13:46:37 +02:00
  • 02d180ad88 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic John J. Camilleri 2021-09-27 13:33:52 +02:00
  • 8c04eed5c3 Add bindings for global/abstract flag functions John J. Camilleri 2021-09-27 13:33:34 +02:00
  • 6c2d180544 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-27 13:29:11 +02:00
  • d1e6b78a45 overload ExprApp for backward compatibility krangelov 2021-09-27 13:28:53 +02:00
  • 6ce619c146 Solve the mystery of the segfaults when reading args in createCategory John J. Camilleri 2021-09-27 11:51:58 +02:00
  • 2deae9d402 Add PGF.writeToFile. Add categoryProbability, but it seems pgf_category_prob always returns 0. John J. Camilleri 2021-09-27 11:37:52 +02:00
  • 187ded6d3d Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic John J. Camilleri 2021-09-27 09:40:59 +02:00
  • 6f94957857 Make Hypo its own class instead of using tuples John J. Camilleri 2021-09-27 09:00:46 +02:00
  • 561862e1bd restore Expr_unpack krangelov 2021-09-27 08:53:43 +02:00
  • 07c3f4b88a fix Expr_visit krangelov 2021-09-27 07:27:44 +02:00
  • 4dcf43dbf3 make all members READONLY to avoid crashes later krangelov 2021-09-27 06:18:33 +02:00
  • 97ca7b112c remove Expr_getsetters krangelov 2021-09-27 06:15:00 +02:00
  • fbd0be2c3e restore Expr_visit krangelov 2021-09-27 06:12:14 +02:00
  • b12e8a6969 fix Expr_call krangelov 2021-09-27 05:30:00 +02:00
  • 809a02f3bc added Expr_subclass_new krangelov 2021-09-26 22:54:09 +02:00
  • 3716990b8d remove the redundany _new functions krangelov 2021-09-26 21:02:57 +02:00
  • 729a3102b4 added Expr_new and Expr_reduce_ex for backward compatibility krangelov 2021-09-26 20:34:36 +02:00
  • 28bb236248 Add deallocator functions to all classes John J. Camilleri 2021-09-26 15:45:34 +02:00
  • 1fce5144f8 Rename fields to match those in runtime. Use tp_members instead of tp_getattro for getters. John J. Camilleri 2021-09-26 15:14:04 +02:00
  • 4a0efda0e6 fix the handling of PGF_EXN_OTHER_ERROR krangelov 2021-09-25 08:11:05 +02:00
  • f82f19ba68 better error handling krangelov 2021-09-24 19:54:29 +02:00
  • f83ea160da more patterns in the partial evaluator krangelov 2021-09-24 19:14:48 +02:00
  • 466fd4a7da Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-24 17:20:48 +02:00
  • c5b6432016 implemented tables and parameters krangelov 2021-09-24 17:20:25 +02:00
  • a46b91fe10 Missed one 'free' John J. Camilleri 2021-09-24 16:13:36 +02:00
  • a2e4e74644 Add getters for Type and Expr attributes, with tests John J. Camilleri 2021-09-24 16:10:48 +02:00
  • ad9fbdef6f added test case for parameters krangelov 2021-09-24 15:55:59 +02:00
  • eba37f5b09 fix typo krangelov 2021-09-24 15:49:41 +02:00
  • d294033822 added more tests krangelov 2021-09-24 15:43:53 +02:00
  • 886592f345 renamed tests krangelov 2021-09-24 15:41:05 +02:00
  • ac304ccd7c more low-handing fruits in the partial evaluator krangelov 2021-09-24 15:14:52 +02:00
  • dea2176115 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-24 15:01:01 +02:00
  • 3dc2af61a6 done with partial evaluation for records and variants krangelov 2021-09-24 15:00:34 +02:00
  • 4719e509a5 Add FreePgfText function John J. Camilleri 2021-09-24 15:00:10 +02:00
  • d17ca06faf Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-24 13:57:29 +02:00
  • a9a8ed8bf3 fix the dependency on librt krangelov 2021-09-24 13:57:11 +02:00
  • fc12749124 Complete transaction tests John J. Camilleri 2021-09-24 13:46:46 +02:00
  • 2c01eab355 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-24 13:36:21 +02:00
  • d72017409a added -lrt krangelov 2021-09-24 13:35:51 +02:00
  • 90b7134eef Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic John J. Camilleri 2021-09-24 13:09:36 +02:00
  • d0ce218ae1 Add helper functions for common conversions John J. Camilleri 2021-09-24 13:09:26 +02:00
  • 917c223db7 Add checkoutBranch function. Fix incorrect INCREF of non-Python object. John J. Camilleri 2021-09-24 11:47:46 +02:00
  • bd629452ac Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-24 11:26:49 +02:00
  • bdd84f10f9 got started on inter-process communication krangelov 2021-09-24 11:25:58 +02:00
  • 139e851f22 Add null check before freeing DB John J. Camilleri 2021-09-24 08:20:31 +02:00
  • 0ff4b0079d Minor changes to transactions.md John J. Camilleri 2021-09-24 07:57:52 +02:00
  • 00d5b238a3 Update transactions.md Krasimir Angelov 2021-09-23 17:56:09 +02:00
  • c843cec096 Update transactions.md Krasimir Angelov 2021-09-23 15:28:49 +02:00
  • 3ee0d54878 Update transactions.md Krasimir Angelov 2021-09-23 15:07:13 +02:00
  • 5e46c27d86 Update transactions.md Krasimir Angelov 2021-09-23 15:01:19 +02:00
  • 2a3d5cc617 Update transactions.md Krasimir Angelov 2021-09-23 14:07:50 +02:00
  • 001e727c29 Update transactions.md Krasimir Angelov 2021-09-23 13:35:11 +02:00
  • cb6d3c4a2d Update transactions.md Krasimir Angelov 2021-09-23 13:03:18 +02:00
  • cfc1e15fcf Update transactions.md Krasimir Angelov 2021-09-23 12:01:28 +02:00
  • bebd56438b Update transactions.md Krasimir Angelov 2021-09-23 10:59:36 +02:00
  • a2102b43bd got started with the new partial evaluation krangelov 2021-09-22 18:17:50 +02:00
  • c4f739c754 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic krangelov 2021-09-22 18:14:44 +02:00
  • 18e54abf12 make it possible to run specific tests krangelov 2021-09-22 18:14:18 +02:00
  • 4611d831ff Add helper function for checking and converting list of hypos John J. Camilleri 2021-09-22 15:37:33 +02:00
  • 21ee96da9b Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic John J. Camilleri 2021-09-22 15:14:49 +02:00
  • b1fd1f1a5e Fix segfaults with Python 3.8 in Transaction_createCategory. Tweaks to enter/exit functions. John J. Camilleri 2021-09-22 15:14:42 +02:00
  • bcbf9efa5f started a page about transactions krangelov 2021-09-22 14:44:56 +02:00
  • 2d74fc4d64 Merge branch 'master' into majestic krangelov 2021-09-22 14:15:35 +02:00
  • e4b2f281d9 Merge branch 'master' of github.com:GrammaticalFramework/gf-core krangelov 2021-09-22 14:11:27 +02:00
  • 063c517f3c more tests for variants krangelov 2021-09-22 14:11:11 +02:00
  • dd65f9f365 a better way to handle double releases krangelov 2021-09-22 13:44:03 +02:00