Commit Graph

7959 Commits

Author SHA1 Message Date
krangelov
c6d6914688 switch to using FILE * in the reader 2021-09-15 08:06:18 +02:00
krangelov
9fe6ee3cce bugfixes for showContext & showType 2021-09-14 19:54:38 +02:00
krangelov
a7bf47cb87 added showContext 2021-09-14 19:10:01 +02:00
krangelov
3675e5cfc6 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-14 17:33:43 +02:00
krangelov
e82fb7f32f added exprProbability 2021-09-14 17:33:22 +02:00
John J. Camilleri
fd61a6c0d3 Add ExprApp to Python bindings 2021-09-14 15:28:39 +02:00
John J. Camilleri
6ebb8e5fda Add ExprFun to Python bindings 2021-09-14 15:07:03 +02:00
krangelov
05813384e0 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-14 09:34:22 +02:00
krangelov
22f62be511 added PGF(pIdent,pExpr) 2021-09-14 09:34:00 +02:00
John J. Camilleri
be5751060a Add showExpr and tests for it using variable expressions 2021-09-14 00:18:45 +02:00
John J. Camilleri
9e3d329528 Update behaviour for bindings to categoryContext when cat is non-existant 2021-09-13 22:44:04 +02:00
John J. Camilleri
a715d029f7 Fix Haskell tests after changes to categoryContext and functionProb 2021-09-13 22:35:23 +02:00
John J. Camilleri
e78e9102be Add variable expressions 2021-09-13 22:29:23 +02:00
krangelov
cf7673525f the compiler now compiles with the new runtime 2021-09-13 18:32:57 +02:00
John J. Camilleri
c5ce2fd4b7 Add ExprMeta type, with two basic tests 2021-09-13 16:18:32 +02:00
John J. Camilleri
d8a7aef46b Add constructor for ExprLit, use it in tests 2021-09-13 15:47:15 +02:00
John J. Camilleri
7e747fbd17 int -> size_t 2021-09-13 15:23:07 +02:00
John J. Camilleri
3d25efd38a Add functionIsConstructor function 2021-09-13 15:15:16 +02:00
John J. Camilleri
c83a31708d Add categoryContext function 2021-09-13 15:05:38 +02:00
John J. Camilleri
919fd5d83e Make Expr_str work for large (size > 1) and negative integers 2021-09-13 14:38:05 +02:00
John J. Camilleri
5f5bd7a83b Implement Expr_str correctly (but doesn't handle big ints yet) 2021-09-13 10:03:26 +02:00
John J. Camilleri
cb6d385fc0 Un-skip read/boot tests 2021-09-13 09:13:36 +02:00
krangelov
6cb4bef521 added API for accessing flags 2021-09-12 12:57:45 +02:00
krangelov
f1e1564228 the reader now controls the PGF version 2021-09-12 08:26:05 +02:00
krangelov
a7f00a4e84 detect and report an attempt to load non .ngf file in readNGF 2021-09-12 08:11:10 +02:00
krangelov
375452063f fix the crashes 2021-09-11 23:32:50 +02:00
krangelov
08923a57b9 fix typo 2021-09-11 22:46:15 +02:00
krangelov
6cfa250b28 PgfDB::sync is now moved to the desctructor for DB_scope 2021-09-11 18:20:28 +02:00
krangelov
4e443374de restore the thread local declarations that were accidentally removed 2021-09-11 18:06:28 +02:00
krangelov
ae0a6aa6b6 clean up everything after revision is not needed anymore. 2021-09-11 16:33:22 +02:00
krangelov
7f0eb34864 fix typo 2021-09-10 22:31:51 +02:00
krangelov
1b09e7293f implemented pgf_free_revision 2021-09-10 11:39:54 +02:00
John J. Camilleri
678d244b21 Trying to complete Type marshaller, keep getting segfaults 2021-09-10 00:28:16 +02:00
John J. Camilleri
2f51c8471c Fix conversion from PyUnicode to PgfText. Remove Python 2-style PyString macros. 2021-09-09 23:41:55 +02:00
John J. Camilleri
4739e3d779 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-09 20:42:07 +02:00
John J. Camilleri
8bc171d7a1 Remove int tag from ExprLitObject 2021-09-09 20:42:01 +02:00
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
John J. Camilleri
5eade6f111 Generalise error handling 2021-09-09 11:16:10 +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
John J. Camilleri
175349175a Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-09 09:34:13 +02:00
John J. Camilleri
1d0c4e7c39 Handle unmarshalling of large ints in Python bindings 2021-09-09 09:34:05 +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
John J. Camilleri
9739344ca6 Support (small, size = 1) negative integers 2021-09-08 17:25:10 +02:00