Commit Graph
114 Commits
Author SHA1 Message Date
krangelov 070f63a049 complete showPGF 2021-11-17 14:03:04 +01:00
krangelov 1e3efd9fa4 progress on showPGF 2021-11-16 16:15:22 +01:00
krangelov 10e26575de started on showPGF 2021-11-16 12:07:38 +01:00
krangelov 5649bc1ef0 started piping PMCFG rules to the runtime 2021-11-16 11:49:02 +01:00
krangelov 9eb88f9281 a number of new API functions for the concrete syntax. 2021-11-09 09:16:20 +01:00
krangelov a4ad17a478 pgf_create_lin now has access to the abstract function 2021-11-09 08:50:54 +01:00
krangelov 02a84b12da simplify types 2021-11-09 08:08:14 +01:00
krangelov 1aacc34deb fix reference counting for concrete revisions 2021-11-09 08:02:20 +01:00
krangelov 6552bcf909 Unify the data model between the C runtime and the Haskell binding 2021-11-09 02:04:36 +01:00
krangelov 2320c6b3b0 export alterConcrete too 2021-10-28 19:32:37 +02:00
krangelov 7e0fc159ce use newForeignPtrEnv instead of Foreign.Concurrent.newForeignPtr 2021-10-26 20:24:35 +02:00
krangelov 1413c273cc API for adding concrete syntaxes. Garbage collection to be fixed! 2021-10-21 19:18:14 +02:00
krangelov c3eb6973f4 working PMCFG generation 2021-10-13 19:14:56 +02:00
krangelov 8c721e063c partial support for runtime parameters 2021-10-12 12:06:59 +02:00
krangelov 98f42051b1 first steps towards PMCFG generation 2021-10-08 11:53:07 +02:00
krangelov e11e775a96 merge pgf_free and pgf_free_revision since otherwise we cannot control the finalizers in Haskell 2021-09-22 13:21:07 +02:00
krangelov ddb01b41be In case of exception, report the offending function 2021-09-17 11:22:18 +02:00
krangelov b408650125 createFunction now takes arity as argument 2021-09-16 11:04:45 +02:00
krangelov a79fff548d readNGF now fails if the file doesn't exist. Instead there is newNGF 2021-09-16 10:34:51 +02:00
krangelov e00be98ac6 added writePGF 2021-09-15 19:58:42 +02:00
krangelov a7bf47cb87 added showContext 2021-09-14 19:10:01 +02:00
krangelov e82fb7f32f added exprProbability 2021-09-14 17:33:22 +02:00
krangelov 22f62be511 added PGF(pIdent,pExpr) 2021-09-14 09:34:00 +02:00
krangelov cf7673525f the compiler now compiles with the new runtime 2021-09-13 18:32:57 +02:00
krangelov 6cb4bef521 added API for accessing flags 2021-09-12 12:57:45 +02:00
krangelov f7aad0c0e0 added createCategory, dropCategory 2021-09-09 17:33:25 +02:00
krangelov 28321cc023 added dropFunction 2021-09-09 09:47:26 +02:00
krangelov bcc33af36b added support for branches and explicit transaction commit 2021-09-08 14:09:23 +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 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 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 5f5b0caba5 more the exception handling in a single place 2021-08-31 10:04:33 +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
krangelov e9ec4cef67 fill in more gaps in the API 2021-08-27 15:05:42 +02:00
krangelov 8195f8b0cb support for unbounded integers 2021-08-27 11:31:10 +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 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 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 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