Krasimir Angelov
efe00f88e3
refactoring pgfMain now takes the file path directly
2024-05-16 19:34:02 +02:00
Krasimir Angelov
c72fb9b958
update after the changes in http-slim
2024-01-22 17:29:57 +01:00
Krasimir Angelov
2bc6e28ab0
fix after the patch in http-slim
2023-09-07 15:05:11 +02:00
Krasimir Angelov
91681088ca
make it possible to download a grammar
2023-09-07 10:30:43 +02:00
Krasimir Angelov
5ca00ded84
added version constraints
2022-11-10 15:44:34 +01: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
173128bd46
Merge branch 'master' into majestic
2022-08-24 20:31:10 +02:00
Krasimir Angelov
464c0001c4
remove the version limit for base
2022-08-17 09:56:32 +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
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
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
krangelov
8b05257d6c
restore the web server
2021-12-24 11:41:03 +01:00
krangelov
155657709a
Merge branch 'master' into c-runtime
2021-07-30 11:20:04 +02:00
John J. Camilleri
0954b4cbab
More cabal file cleanup. Remove some more tabs from Haskell source.
2021-07-07 13:04:09 +02:00
Inari Listenmaa
6efbd23c5c
Merge pull request #84 from ffrixslee/issue-46
...
Issue 46 (various deprecations during compilation of GF)
2021-06-29 23:48:00 +02:00
krangelov
af1360d37e
allow parameter cat in the Web API for parsing
2021-05-27 11:45:31 +02:00
Liyana
54e5fb6645
Added explicit implementation for 'readJSON' in the instance declaration for 'JSON PGF.Trie'
2020-11-10 17:19:18 +08:00
Andreas Källberg
3bd1f01959
Fix a few warnings
2020-08-05 18:48:24 +02:00
krangelov
830dbe760d
expose parseToChart via the Web API
2020-07-26 15:56:54 +02:00
krangelov
62bc78380e
lookupCohorts now detects and reports unknown words. Also:
...
- added added two filtering functions: filterLongest and filterBest
- updated the PGF service to work with the new API
2020-05-14 15:03:30 +02:00
krangelov
98a18843da
support command c-lookupCohorts
2020-02-13 14:51:03 +01:00
krangelov
61641e7a59
support post requests to the server
2020-02-13 14:50:23 +01:00
Thomas Hallgren
33aeb53f7a
PGFService: userLanguage now defaults to English, if present in the grammar
...
The userLangauge is the name of the concrete syntax that has a languageCode
that matches the user's preferred language, as reported by the web browser.
If no matching language code is found, the PGF service now sets userLanguage
to the concrete syntax for English (e.g. FoodsEng) if present, and defaults
to the first concrete syntax (e.g. FoodsAfr) only if English is not present
in the grammar.
2019-11-26 15:27:02 +01:00
Thomas Hallgren
28f53e801a
PGFService: revert unlexing change in PGFService to restore &+ behaviour
2019-11-18 13:20:41 +01:00
krangelov
acb70ccc1b
cleanup
2019-09-19 22:30:08 +02:00
krangelov
4a71464ca7
Merge with master and drop the Haskell runtime completely
2019-09-19 22:01:57 +02:00
krangelov
e993ae59f8
drop the haskell runtime, part 2
2019-09-19 10:06:06 +02:00
krangelov
148590927c
remove obsolete code
2019-08-18 09:09:40 +02:00
Thomas Hallgren
86066d4b12
Eliminate the dependency on time-compat
...
It was only needed for compatibility with directory<1.2, but
directory>=1.2 has been shipped with ghc since ghc-7.6.
Note: time-compat-1.9.* (the current version) is a completely different
package, that does not provide the needed function toUTCTime, which
was provided in time-compat-0.1.*.
2019-05-15 12:05:38 +02:00
krangelov
fc37bc26cd
fixed typo on c-bracketedLinearize
2019-02-26 21:10:06 +01:00
krangelov
2fdfef13d8
added command c-bracketedLinearize
2019-02-26 15:16:36 +01:00
Krasimir Angelov
7c97e5566d
fix after the change in bracketed string
2018-12-20 12:40:46 +01:00
John J. Camilleri
507236fdcd
remove gf-server.cabal
2018-11-28 13:40:16 +01:00
John J. Camilleri
735f5ff76f
Remove src/ui folder, moved to:
...
https://github.com/GrammaticalFramework/gf-offline-translator
2018-11-15 10:33:31 +01:00
Krasimir Angelov
5a2b200948
manually copy the "c-runtime" branch from the old repository.
2018-11-02 14:38:44 +01:00
Thomas Hallgren
4fd1ec71c9
gf-server.cabal: relax network version bounds and make building the library and pgf-service executable optional
...
This allows you to build the content-service without installing the problematic fastcgi library.
2018-07-31 14:29:18 +02:00
Krasimir Angelov
ebe7cb3b73
A new function called "completions" is added in the Haskell runtime and used in PGFService. This makes the extraction of completions more platform independent
2017-09-06 15:17:28 +02:00
Krasimir Angelov
15d014abb8
the parser in the C runtime can now detect incomplete sentences just like the parser in the Haskell runtime. This is also reflected in all bindings.
2017-09-06 12:38:42 +02:00
Krasimir Angelov
1f908fa7bf
eliminate modules PGF.Lexing, PGF.LexingAGreek. Make PGF.Utilities an internal module in the runtime. These are not really part of the core runtime.
2017-09-04 11:43:37 +02:00
Krasimir Angelov
eaf9f0c3ac
the C runtime now supports the same customizations for GraphViz as the Haskell runtime
2017-08-31 10:58:49 +02:00
Thomas Hallgren
a0e7e3bf83
A couple of fixes for GHC 8.2.1 compatibility
2017-08-11 10:07:43 +02:00
hallgren
766bc09058
PGFService.hs: fix problem when compiling without C run-time support
...
The previous patch introduced an indentation problem in the code that is used
when compiling without C run-time support.
2017-05-10 12:59:57 +00:00
hallgren
d620c62d0b
PGFService: add CncLabels support to command=deptree
...
CncLabels are read from a file in the same directory as the PGF file and
with the same name as the concrete syntax + extension .labels,
e.g. ResourceDemo.pgf would use labels from
ResouceDemo.labels (abslabels)
ResouceDemoEng.labels (clclabels)
2017-05-05 14:01:02 +00:00
aarne
ee2f3d085e
vd command now reads local concrete configurations to deal with syncat words; TODO: dissolve clustered multiwords bound with +
2017-04-06 11:55:21 +00:00
hallgren
ae512e09e0
Fix compilation errors caused by changes in PGF2
...
These prevented GF from being built with C run-time support (-fc-runtime).
2017-02-21 13:21:59 +00:00