Commit Graph
100 Commits
Author SHA1 Message Date
Krasimir Angelov 106d963d39 fix the printing of ExprItem 2022-09-30 10:45:14 +02:00
Krasimir Angelov 74f4317b98 detect chunks with more than one words 2022-09-29 18:49:31 +02:00
Krasimir Angelov cd280272f3 bottom up prediction and maximal chunks 2022-09-23 11:33:16 +02:00
Krasimir Angelov f8cfed15b4 add PGF_INTERNAL_DECL 2022-09-21 11:26:19 +02:00
Krasimir Angelov e600d5e623 PGF_INTERNAL_DECL -> PGF_INTERNAL 2022-09-21 11:24:30 +02:00
Krasimir Angelov 3e0cc91a02 first rudimentary version of a parser 2022-09-16 12:34:46 +02:00
Krasimir Angelov bcb1076dda don't try to translate empty sentences 2022-09-16 12:29:27 +02:00
Krasimir Angelov 1219b365a9 sync with the changes in http-slim 2022-09-09 12:33:10 +02:00
Krasimir Angelov a5468359ce switch to using http-slim 2022-09-09 09:43:02 +02:00
Krasimir Angelov 8c705d54b8 switch to using http-slim 2022-09-09 09:42:19 +02:00
Krasimir Angelov 173128bd46 Merge branch 'master' into majestic 2022-08-24 20:31:10 +02:00
Krasimir Angelov 8fd5c1e176 Merge branch 'master' into majestic 2022-08-24 20:09:28 +02:00
Krasimir Angelov dc8dce90a0 added a Setup script to compile without cabal-install 2022-08-24 14:00:22 +02:00
Krasimir Angelov e9bbd38f68 gf --version now prints the shared folder to be used by the RGL 2022-08-24 12:02:10 +02:00
Krasimir Angelov 3fac8415ca forgot to mention sudo 2022-08-24 12:00:43 +02:00
Krasimir Angelov 1294269cd6 workaround for the Nix madness 2022-08-24 11:57:47 +02:00
Krasimir Angelov bcd9184ede initial adaptation to the new runtime 2022-08-19 17:26:59 +02:00
Krasimir Angelov 743c473526 linearization for chunks 2022-08-19 16:37:56 +02:00
Krasimir Angelov a27e2dbbb4 fix a leak of stable pointers 2022-08-19 11:34:27 +02:00
Krasimir Angelov 44c78e8cc7 remove dead code 2022-08-17 10:33:54 +02:00
Krasimir Angelov aec123bb7d fix compilation on Mac as well. 2022-08-17 10:30:37 +02:00
Krasimir Angelov 01c46479c6 another attempt to fix compilation 2022-08-17 10:22:12 +02:00
Krasimir Angelov b378834756 try to restrict the GHC version for now 2022-08-17 10:14:25 +02:00
Krasimir Angelov 464c0001c4 remove the version limit for base 2022-08-17 09:56:32 +02:00
Krasimir Angelov 24cac8e41a update the Makefile to use the new style cabal 2022-08-17 09:54:32 +02:00
Krasimir Angelov 6d81306320 Try to remove the upper version for base 2022-08-17 09:49:37 +02:00
Krasimir Angelov c8f37680f5 trying to fix the compilation on github 2022-08-17 09:44:04 +02:00
Krasimir Angelov 62344d1325 manually copy the logo to the www directory. Copying in Setup.hs doesn't work with the new Cabal 2022-08-16 21:03:44 +02:00
Krasimir Angelov 3bdd9dc022 add missing MonadFail constraint for newer GHC 2022-08-16 20:06:51 +02:00
Krasimir Angelov 6c0e4bc08e switch to the new style cabal 2022-08-16 20:05:55 +02:00
krangelov 3acb7d2da4 silence harmless warnings 2022-08-12 10:54:43 +02:00
krangelov 08fb29e6b8 fix the reference counting for pgf.BIND 2022-08-12 10:51:56 +02:00
Krasimir Angelov ada8ff8faa bugfix which makes lookupCohorts fast again 2022-07-30 18:22:58 +02:00
Krasimir Angelov a42cec2107 support for BIND tokens in the Python bindings 2022-07-16 20:29:36 +02:00
Krasimir Angelov eb41d2661f bugfix in readContext 2022-07-14 15:56:11 +02:00
Krasimir Angelov 9ded2096fd readExpr/readType/readContext can now identify local variables 2022-07-14 15:10:28 +02:00
Krasimir Angelov 3ba3f24e3a disable macos-javascript as well 2022-07-14 11:52:59 +02:00
Krasimir Angelov 826a346e19 building the JavaScript binding is disabled until someone takes care of it 2022-07-14 11:50:35 +02:00
Krasimir Angelov bc47a01223 another try 2022-07-14 11:46:19 +02:00
Krasimir Angelov 4d3e414776 another try 2022-07-14 11:37:36 +02:00
Krasimir Angelov 833a86960b fix the binding after the API change 2022-07-14 11:25:00 +02:00
Krasimir Angelov 4d0f33e3c3 make it possible to replace the probabilities while reading a new .pgf 2022-07-14 11:04:45 +02:00
Krasimir Angelov f1cad40394 lookupMorpho/lookupCohorts now report only lexical items 2022-07-12 14:02:08 +02:00
Krasimir Angelov 5b8212020f finished the implementation of lookupCohorts 2022-07-12 12:46:50 +02:00
Krasimir Angelov e546c2a0ce added a simple implementation for priority queues. 2022-07-08 16:19:11 +02:00
Krasimir Angelov b509d22482 show match positions for ma -all|-longest|-best 2022-07-07 19:37:06 +02:00
Krasimir Angelov acc6f85041 fix to show all prefixes in lookupCohorts 2022-07-07 19:29:26 +02:00
Krasimir Angelov cfd9fbc5ed better documentation for "ma" 2022-07-07 14:18:29 +02:00
Krasimir Angelov 6c9f0cfe9c make also filterLongest and filterBest available from the shell 2022-07-07 14:11:31 +02:00
Krasimir Angelov a66693770c started with lookupCohorts 2022-07-07 14:03:07 +02:00
Krasimir Angelov c783da51a4 bugfix in lookupMorpho 2022-07-06 19:25:37 +02:00
Krasimir Angelov c3c1cf2a64 on POSIX systems use mprotect to protect the data from accidental changes 2022-07-05 15:59:06 +02:00
Krasimir Angelov 73d4e326f7 consolidation of free blocks 2022-07-05 13:21:53 +02:00
Krasimir Angelov 96304a52d1 added checks to control compilation with emscripten 2022-07-04 14:26:04 +02:00
Krasimir Angelov feb9b3373f fix the type cast, to avoid warnings on some platforms 2022-07-04 14:25:17 +02:00
Krasimir Angelov 1862ba5cec Define custom isdigit version. The expression parser now uses the custom isspace and isdigit 2022-07-04 14:24:06 +02:00
Krasimir Angelov 4d446fcd3f Merge branch 'master' of github.com:GrammaticalFramework/gf-core 2022-07-04 10:42:59 +02:00
Krasimir Angelov ae460e76b6 allow compilation with emscripten 2022-07-04 10:42:34 +02:00
Krasimir Angelov 69a2b8a448 second attempt to fix the compilation 2022-06-29 21:48:48 +02:00
Krasimir Angelov 46a9a8f07d fix the compilation on Windows and macOS 2022-06-29 21:40:51 +02:00
Krasimir Angelov 88477a8834 added mutex for single writer exclusion 2022-06-29 16:28:01 +02:00
Krasimir Angelov edb9ff33c5 another fix for linearizeAll and undefined lins 2022-06-28 18:21:58 +02:00
Krasimir Angelov 5b645ab42f normalForm should also sort the fields in a record type 2022-06-28 14:34:56 +02:00
Krasimir Angelov 42d01578ec added test for an unknown function at the top of an expression 2022-06-24 22:27:39 +02:00
Krasimir Angelov 635dc380a3 handle linref when the argument is an unknown function 2022-06-24 06:31:28 +02:00
Krasimir Angelov f51f6240b6 remove redundant pattern 2022-06-23 14:53:58 +02:00
Krasimir Angelov 663cca2d06 fix the resolution of linrefs 2022-06-23 14:52:47 +02:00
Krasimir Angelov 44431d6a69 when in server mode reuse the NGF cache in the shell as well 2022-06-23 10:25:16 +02:00
Krasimir Angelov 7544e8dfbc remove duplicated export 2022-06-22 11:29:09 +02:00
Krasimir Angelov 174cc57eb7 restore the FastCGI service and move some files back to src/server 2022-06-22 11:18:56 +02:00
Krasimir Angelov a8ad145aeb move gf.cabal and all compiler dependent files into src/compiler 2022-06-18 20:42:31 +02:00
Krasimir Angelov 96c8218564 remove left out debug message 2022-06-16 18:21:54 +02:00
Krasimir Angelov 8ac0d881ed the server must checkout the grammar if an .ngf file changes 2022-06-16 18:20:18 +02:00
Krasimir Angelov ad8a32ce86 safe parsing of "" and '' 2022-06-16 11:22:15 +02:00
Krasimir Angelov 247a48e5bb restore missing case in the JSON instance for BracketedString 2022-05-31 11:38:02 +02:00
Krasimir Angelov 418aa1a2b2 the web server now serves both .pgf and .ngf files 2022-05-31 11:32:02 +02:00
Krasimir Angelov 4c433b6b9d Merge branch 'master' into majestic 2022-05-31 10:20:22 +02:00
Krasimir Angelov b7672b67a3 adjust the -view command depending on the OS 2022-05-31 10:15:50 +02:00
Krasimir Angelov 03fe38124f Merge branch 'master' into majestic 2022-05-31 08:05:00 +02:00
Krasimir Angelov e33de168fd use a relative link to WordNet 2022-05-31 07:44:25 +02:00
Krasimir Angelov 18f70b786f first draft for lookupMorpho 2022-05-30 21:16:34 +02:00
Krasimir Angelov 92fbe08f51 small correction 2022-05-29 08:07:35 +02:00
Krasimir Angelov 109f8c86e8 more bugfixes in the allocator 2022-05-28 07:43:56 +02:00
Krasimir Angelov 02e45f478f avoid std::min since it is not available on macOS 2022-05-25 08:13:03 +02:00
Krasimir Angelov 363abce351 small fixes 2022-05-24 14:07:17 +02:00
Krasimir Angelov eb06ff77bf pgf_clone_concrete must release the old concrete 2022-05-23 20:09:46 +02:00
Krasimir Angelov fc09bc776b transactions should always start with the last revision and release it when done 2022-05-23 19:50:41 +02:00
Krasimir Angelov d66cf23811 Revisions now correspond to revision_entry:s in the database. 2022-05-23 13:59:03 +02:00
Krasimir Angelov a3d73fa658 register_revision must refresh the transaction to the latest 2022-05-23 11:33:47 +02:00
Krasimir Angelov 165de70172 debug messages for revision handling 2022-05-23 11:05:59 +02:00
Krasimir Angelov 31e20ffd84 more debug messages 2022-05-23 10:31:29 +02:00
Krasimir Angelov e794f46e49 merge set_active_revision() with commit() 2022-05-23 09:58:43 +02:00
Krasimir Angelov 8a7d8ce246 at the end of the transaction the old revision is already released. 2022-05-23 09:52:25 +02:00
Krasimir Angelov 35176cc721 descriptors released in the last transaction are now reused in the next 2022-05-23 09:50:58 +02:00
Krasimir Angelov 9cd5634873 better debugging output in the allocator 2022-05-20 20:21:22 +02:00
Krasimir Angelov 3c1a3fb899 bugfix 2022-05-20 19:49:27 +02:00
Krasimir Angelov 483285e193 bug fixes in the allocator 2022-05-20 17:49:45 +02:00
Krasimir Angelov f82b0088ed fix for Windows 2022-05-20 16:20:45 +02:00
Krasimir Angelov 37e1707f18 hopefully last attempt 2022-05-20 16:15:45 +02:00
Krasimir Angelov 607b8d6d23 next attempt to fix Windows 2022-05-20 16:08:10 +02:00