Commit Graph
100 Commits
Author SHA1 Message Date
krangelov 7c622d2621 fix the definition of PgfMarshallerVtbl for C 2021-09-09 17:58:18 +02:00
krangelov 2f9c784fed Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-09 17:34:12 +02:00
krangelov f7aad0c0e0 added createCategory, dropCategory 2021-09-09 17:33:25 +02:00
krangelov a44787fc4e forgot to add the type signature for pgf_drop_function in the header 2021-09-09 09:52:43 +02:00
krangelov 97c76a9030 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-09 09:47:44 +02:00
krangelov 28321cc023 added dropFunction 2021-09-09 09:47:26 +02:00
krangelov 0dae265b05 expand the comment about PgfExn 2021-09-09 07:25:57 +02:00
krangelov 36ccb7ac8f PGF_API -> PGF_API_DECL 2021-09-09 07:22:25 +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
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
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
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
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
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
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
Krasimir Angelov f25b518186 Update abstract_expressions.md 2021-08-27 18:25:46 +02:00
krangelov e9ec4cef67 fill in more gaps in the API 2021-08-27 15:05:42 +02:00
krangelov 3e7d80bf30 reading & showing unicode identifiers 2021-08-27 14:44:42 +02:00
krangelov 41ef5f9539 textdup is now safe in case of memory overflow 2021-08-27 13:03:11 +02:00
krangelov 5271ddd10b PgfPrinter::nprintf dynamically reallocates the printing buffer if needed 2021-08-27 11:57:58 +02:00
krangelov 8195f8b0cb support for unbounded integers 2021-08-27 11:31:10 +02:00
krangelov 684f85ff94 hide PgfDBMarshaller 2021-08-26 19:49:27 +02:00
krangelov a00a7f4ba5 elaborate the comment about marshallers and unmarshallers 2021-08-26 18:01:25 +02:00
Krasimir Angelov 5982dbc146 Update README.md 2021-08-26 17:38:58 +02:00
Krasimir Angelov 9b2813f48a Create abstract_expressions.md 2021-08-26 17:38:28 +02:00
krangelov b28e891a6b a type annotated version of marshaller/unmarshaller 2021-08-26 17:27:34 +02:00
krangelov 59e54482a3 added PgfDBMarshaller 2021-08-26 16:36:37 +02:00
krangelov 69f74944e2 The unmarshaller is no longer stored in the PGF object but is passed explicitly to each function that needs it. 2021-08-26 16:14:56 +02:00
krangelov 0d9f2994a0 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-08-26 15:46:41 +02:00
krangelov 275addfcbe pretty printing for expressions and types 2021-08-26 15:46:16 +02:00
krangelov 07bda06fb2 missed a line 2021-08-14 21:16:20 +02:00
krangelov d28c5a0377 a hopefully better error management in the marshaller 2021-08-14 21:13:31 +02:00
krangelov 8b8028bdfe free_ref & free_me in PgfMarshaller too 2021-08-14 20:08:04 +02:00
krangelov 9db352b2bb bugfix 2021-08-14 18:51:16 +02:00
krangelov b627d4ceb0 fix typo 2021-08-13 20:33:00 +02:00
krangelov 0296f07651 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-08-13 19:29:39 +02:00
krangelov 6beac74265 a draft for the marshaller. still not in use 2021-08-13 19:25:12 +02:00
krangelov 221f0b7853 PgfUnmarshaller now mimics a C++ class. Allows for keeping state 2021-08-13 18:14:56 +02:00
krangelov 08bcd2f0b5 silence warnings 2021-08-13 08:28:30 +02:00
krangelov 1bc0cfd025 accidentally commited a wrong version of expr.cxx 2021-08-13 08:26:18 +02:00
krangelov 21044264fa forgot adding expr.cxx 2021-08-13 08:12:03 +02:00
krangelov 2a8d4232ce Fun -> Cat 2021-08-12 14:45:49 +02:00
krangelov 352dedc26f forgot releasing a stable pointer 2021-08-12 14:45:05 +02:00
krangelov 7e35db47a6 export PGFError 2021-08-12 14:41:50 +02:00
krangelov edba4fda32 test that we can handle loading failures 2021-08-12 14:23:20 +02:00
krangelov a8403d48fa the unmarshaller should not be disposed twice in case of error 2021-08-12 14:16:19 +02:00
krangelov 3578355bd0 fix computing the size of the mapped area 2021-08-12 14:04:35 +02:00
krangelov 39f38ed0e2 added startCat 2021-08-12 12:39:05 +02:00
krangelov 01db0224be API for constructing types 2021-08-12 12:16:11 +02:00
krangelov 16dfcb938c more of the abstract API copied from the old runtimes 2021-08-12 12:06:50 +02:00
krangelov 0ece508716 added categoryProb, functionProb, functionIsConstructor 2021-08-12 11:10:27 +02:00
krangelov 72993a178a Merge branch 'majestic' of https://github.com/GrammaticalFramework/gf-core into majestic 2021-08-12 10:42:24 +02:00
krangelov f2da618e5d implemented categoryContext 2021-08-12 10:42:02 +02:00
krangelov c97b736a5b fix the reading of expressions 2021-08-12 10:41:23 +02:00
krangelov 82ce76a2ce fix allocation to ensure that top is properly aligned from the beginning 2021-08-12 10:40:33 +02:00
krangelov d2aec60612 fix typos 2021-08-12 10:38:55 +02:00
krangelov c482d3466c added != operator removed function null() 2021-08-12 08:49:20 +02:00
krangelov 4abe7836e0 test case for functionType 2021-08-12 07:53:55 +02:00
krangelov 2c1700776e implemented readExpr & readType 2021-08-11 22:07:01 +02:00
krangelov a5008c2fe1 implemented functionType and marshalling for types and expressions 2021-08-10 15:07:41 +02:00
krangelov 7b5669a333 Merge branch 'majestic' of https://github.com/GrammaticalFramework/gf-core into majestic 2021-08-08 18:30:07 +02:00
krangelov 91f183ca6a move the C sources to the subfolder pgf again for backwards compatibility 2021-08-08 18:29:16 +02:00
Krasimir Angelov 0187be04ff Update memory_model.md 2021-08-08 16:50:16 +02:00
krangelov f70e1b8772 fix the DB_scope in pgf_read_ngf 2021-08-08 16:29:51 +02:00
krangelov 8d1cc22622 fix typo 2021-08-08 16:24:29 +02:00
krangelov e7bd7d00b3 remove the newly created .ngf on error. 2021-08-08 16:20:41 +02:00
krangelov f3e579bbb1 implement DB_scopes 2021-08-08 16:17:24 +02:00
krangelov 11b630adc1 Merge branch 'majestic' of https://github.com/GrammaticalFramework/gf-core into majestic 2021-08-08 16:12:00 +02:00
krangelov 1088b4ef38 implement grammar loading from Python 2021-08-08 16:11:23 +02:00
Krasimir Angelov db8843c8bf Update memory_model.md 2021-08-07 20:39:09 +02:00