1
0
forked from GitHub/gf-core
Commit Graph

39 Commits

Author SHA1 Message Date
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
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
1ec4949d90 added working transactions. still not atomic 2021-09-06 19:40:24 +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
6c06a9f295 readExpr needs an additional call to mask_ 2021-08-31 20:02:49 +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
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
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
a8403d48fa the unmarshaller should not be disposed twice in case of error 2021-08-12 14:16:19 +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
f2da618e5d implemented categoryContext 2021-08-12 10:42:02 +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
91f183ca6a move the C sources to the subfolder pgf again for backwards compatibility 2021-08-08 18:29:16 +02:00
krangelov
3a7743afad added the expression type 2021-08-06 20:03:22 +02:00
krangelov
825e8447db make it possible to load several grammars in the same process and ensure reader-writer exclusion 2021-08-06 19:34:02 +02:00
krangelov
2d6bcd1953 a better API for loading PGF & NGF files 2021-08-06 16:50:21 +02:00
krangelov
dc1644563f extend the abstract syntax API 2021-08-06 12:43:30 +02:00
krangelov
217e0d8cc6 added function abstractName from the API 2021-08-05 19:30:05 +02:00
krangelov
cc4a215f83 fix the memory leak in case of exceptions 2021-08-05 17:58:04 +02:00
krangelov
5e320943c9 started on the Haskell binding 2021-08-05 17:01:49 +02:00
krangelov
155657709a Merge branch 'master' into c-runtime 2021-07-30 11:20:04 +02:00
krangelov
b3c07d45b9 remove the old Haskell runtime 2019-09-19 22:40:40 +02:00