Commit Graph
6117 Commits
Author SHA1 Message Date
Krasimir Angelov 0a4bb035f9 use malloc instead of alloca since it is in a loop 2026-10-22 15:06:13 +02:00
Krasimir Angelov 7b10bee627 generalize the filter function 2026-10-15 15:09:07 +02:00
Krasimir Angelov 44a7f1bf7a propagate errors in a better way 2026-10-10 11:11:48 +02:00
Krasimir Angelov cf6297fbff updates after the cleanup in the runtime 2026-10-10 11:10:51 +02:00
Krasimir Angelov dc1808d940 produce a better error message when a category/function is not in the abstract 2026-09-21 10:55:00 +02:00
Krasimir Angelov e0fe461b3e for backwards compatibility, now a string literal is a sequence of any characters except space. 2026-09-15 15:05:01 +02:00
Krasimir Angelov d7b9d58039 add derive Show for ParseResult 2026-09-15 11:58:19 +02:00
Krasimir Angelov 28cf82c18d finnish the patterns in the case statement 2026-09-15 11:57:54 +02:00
Krasimir Angelov 465a1919d6 implement missingLins 2026-09-15 10:45:59 +02:00
Krasimir Angelov e12cd6464e implement morphoMissing, morphoKnown 2026-09-15 10:39:25 +02:00
Krasimir Angelov 880f1cd83d fix: export the local functions instead of the PGF2.* version 2026-09-15 10:34:51 +02:00
Krasimir Angelov 0f1375e21c implement parse_ and make ParseFailed have only one argument 2026-09-15 10:29:56 +02:00
Krasimir Angelov c812f05963 redefine readLanguage to fix the type signature 2026-09-15 09:57:10 +02:00
Krasimir Angelov 11852277b9 mkType, unType, mkDepHypo, mkImplHypo need wrappers because of CId 2026-09-15 09:55:14 +02:00
Krasimir Angelov 628c2ae9c6 for backwards compatibility provide both (mk/un)Int and (mk/un)Integer 2026-09-15 09:11:58 +02:00
Krasimir Angelov 4e80f9eceb extend the backwards compatibility module PGF 2026-09-15 08:48:55 +02:00
Krasimir Angelov dc512e0ec4 add testsuite for parsing 2026-09-13 16:21:56 +02:00
Krasimir Angelov df5ad05506 don't allow syntagmatic words where BIND is expected 2026-09-13 16:21:13 +02:00
Krasimir Angelov ad0fb899d2 for backwards compatibility, the parser run in a non-robust mode by default 2026-09-13 16:10:10 +02:00
Krasimir Angelov 57fb34529b support parsing with literals 2026-09-12 17:39:08 +02:00
Krasimir Angelov 19a5da6606 fix: the choice cannot be reused 2026-09-12 11:16:20 +02:00
Krasimir Angelov ae502f37ca type in an overload group were left unchecked 2026-09-12 10:38:00 +02:00
Krasimir Angelov cf90d1280f categories in PredefCnc should also have lock fields 2026-09-12 10:29:06 +02:00
Krasimir Angelov e2c1451ce5 left debugging messages 2026-09-09 16:00:20 +02:00
Krasimir Angelov adace7e5e8 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2026-09-09 15:10:11 +02:00
Krasimir Angelov 97779f15e6 avoid using internal functions from Python C API 2026-09-09 15:05:08 +02:00
Krasimir Angelov 542a62775a change error message 2026-09-09 09:37:05 +02:00
Krasimir Angelov 32cb9a2144 make a temporary copy of the name, in case if the database gets relocated 2026-09-09 09:31:19 +02:00
Krasimir Angelov 49a3eaaa39 fix of by one error 2026-09-09 09:21:25 +02:00
Krasimir Angelov 79ce7825c6 update the test grammar again 2026-09-09 08:17:02 +02:00
Krasimir Angelov f025a75e66 generate SymVar in PMCFG 2026-09-09 08:13:42 +02:00
Krasimir Angelov 7b1f3bd16e propagate SymVar through the evaluator 2026-09-09 08:05:50 +02:00
Krasimir Angelov 37fbf70a2f fix typo 2026-09-09 07:56:50 +02:00
Krasimir Angelov 6d14d243c4 explicit definitions for static members are needed for MSVC++ 2026-09-09 07:36:27 +02:00
Krasimir Angelov 0091e10057 try adding option /std:c++20 for Windows 2026-09-09 07:24:54 +02:00
Krasimir Angelov d3bb34f81b add explict type parameter for MSV C++ 2026-09-09 07:16:41 +02:00
Krasimir Angelov 911dc4b4c8 mark the ItemComparator as const. Seems to be needed for MSV C++ 2026-09-09 07:10:54 +02:00
Krasimir Angelov cdbf6b307c update the test file after the changes in the format 2026-09-09 06:49:40 +02:00
Krasimir Angelov d790af2bd4 add import Control.Monad in imports 2026-09-09 05:44:28 +02:00
Krasimir Angelov a3b19e585d don't do td/bu prediction for epsilon categories if possible 2026-09-04 16:25:11 +02:00
Krasimir Angelov 51c376b9c2 add parsing API 2026-09-03 17:22:04 +02:00
Krasimir Angelov bda63328f7 revert the RW lock before throwing an exception 2026-09-01 14:44:51 +02:00
Krasimir Angelov f2e1b999b4 simpler and correct condition for bu_predict 2026-08-28 11:18:01 +02:00
Krasimir Angelov 4f4ccccc91 revert to checking fid <= concr->last_fid to identify precomputed CCat 2026-08-24 19:40:55 +02:00
Krasimir Angelov 25ca9dd068 forgot checking for null arguments 2026-08-21 07:55:07 +02:00
Krasimir Angelov 0bba6ae1ea fix the equation solver 2026-08-20 18:39:04 +02:00
Krasimir Angelov db9a4b913f remove debug output 2026-08-20 14:06:41 +02:00
Krasimir Angelov 614482c274 another fix 2026-08-20 13:22:11 +02:00
Krasimir Angelov 83700a62a2 fix the case of an empty chart 2026-08-20 13:13:59 +02:00
Krasimir Angelov 17a308972a a higher-level API allows for a more efficient implementation 2026-08-20 11:49:19 +02:00