summaryrefslogtreecommitdiff
path: root/src/server
AgeCommit message (Collapse)Author
2025-08-08Fix warnings for ghc-9.6 about multiplicity syntaxAndreas Källberg
2025-08-02define default depths for shell and server only onceInari Listenmaa
2025-08-02choose openFd based on version of unixInari Listenmaa
2025-08-02use openFd from unix >= 2.8Inari Listenmaa
2025-08-02add whitespace on list comprehensions, applications etc.Inari Listenmaa
text editor interprets these things as errors (e.g. unterminated qq for list comprehension) and underlines red, even though there is no real error.
2021-07-07More cabal file cleanup. Remove some more tabs from Haskell source.John J. Camilleri
2021-06-29Merge pull request #84 from ffrixslee/issue-46Inari Listenmaa
Issue 46 (various deprecations during compilation of GF)
2021-05-27allow parameter cat in the Web API for parsingkrangelov
2020-11-10Added explicit implementation for 'readJSON' in the instance declaration for ↵Liyana
'JSON PGF.Trie'
2020-08-05Fix a few warningsAndreas Källberg
2020-07-26expose parseToChart via the Web APIkrangelov
2020-05-14lookupCohorts now detects and reports unknown words. Also:krangelov
- added added two filtering functions: filterLongest and filterBest - updated the PGF service to work with the new API
2020-02-13support command c-lookupCohortskrangelov
2020-02-13support post requests to the serverkrangelov
2019-11-26PGFService: userLanguage now defaults to English, if present in the grammarThomas Hallgren
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-18PGFService: revert unlexing change in PGFService to restore &+ behaviourThomas Hallgren
2019-08-18remove obsolete codekrangelov
2019-05-15Eliminate the dependency on time-compatThomas Hallgren
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-02-26fixed typo on c-bracketedLinearizekrangelov
2019-02-26added command c-bracketedLinearizekrangelov
2018-12-20fix after the change in bracketed stringKrasimir Angelov
2018-11-28remove gf-server.cabalJohn J. Camilleri
2018-11-15Remove `src/ui` folder, moved to:John J. Camilleri
https://github.com/GrammaticalFramework/gf-offline-translator
2018-07-31gf-server.cabal: relax network version bounds and make building the library ↵Thomas Hallgren
and pgf-service executable optional This allows you to build the content-service without installing the problematic fastcgi library.
2017-09-06A new function called "completions" is added in the Haskell runtime and used ↵Krasimir Angelov
in PGFService. This makes the extraction of completions more platform independent
2017-09-06the parser in the C runtime can now detect incomplete sentences just like ↵Krasimir Angelov
the parser in the Haskell runtime. This is also reflected in all bindings.
2017-09-04eliminate modules PGF.Lexing, PGF.LexingAGreek. Make PGF.Utilities an ↵Krasimir Angelov
internal module in the runtime. These are not really part of the core runtime.
2017-08-31the C runtime now supports the same customizations for GraphViz as the ↵Krasimir Angelov
Haskell runtime
2017-08-11A couple of fixes for GHC 8.2.1 compatibilityThomas Hallgren
2017-05-10PGFService.hs: fix problem when compiling without C run-time supporthallgren
The previous patch introduced an indentation problem in the code that is used when compiling without C run-time support.
2017-05-05PGFService: add CncLabels support to command=deptreehallgren
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-04-06vd command now reads local concrete configurations to deal with syncat ↵aarne
words; TODO: dissolve clustered multiwords bound with +
2017-02-21Fix compilation errors caused by changes in PGF2hallgren
These prevented GF from being built with C run-time support (-fc-runtime).
2016-06-17PGFService: fix a type ambiguity when compiling without C run-time supporthallgren
The function listCaches returns an empty list instead of the contents of the cached C run-time system PGFs when compiled without C-run-time support This gave rise to an ambiguity in GF.Server.
2016-06-09PGF service & minibar: only show dependency diagrams if the labels are knownhallgren
+ The PGF service now reads and caches dependency label configuration files. + The grammar info returned by command=grammar has a new boolean field 'hasDependencyLabels' to indicate if dependency labels were found for the grammar. Also, command=deptree will now fail if no labels are present. + The minibar only shows word dependency trees if labels are present. + Also changed the type of getDepLabels from [String] -> Labels to String -> Labels, since all uses were in the form "getDepLabels . lines".
2016-06-09PGFService: eleminate warning "Defined but not used: ‘serverError’"hallgren
2016-06-08PGF web service: switch to the new SVG rendering of word dependency treeshallgren
Also added the function outputText in CGIUtils.
2016-05-26PGFService.hs: fix compilation problem when C run-time support is omittedhallgren
2016-05-26PGF web service: add command=deptreehallgren
This is the web interface to PGF.graphvizDependencyTree. Accepted parameters: format=<output_format>, to=<lang>, tree=<tree>. Accepted output formats: latex, conll, malt_tab, malt_input, png, gif, svg, gv Also, label information is taken from <path>.labels if present, where <path>.pgf is the path to the PGF file.
2016-05-11the Literals API in Haskell no longer offers the sentence as an argument to ↵krasimir
the callbacks. It is just as easy to save the sentence in a closure and by doing that we save the repeated round about from C to Haskell strings
2015-11-04prepared visualize_parse for showing dependency labelsaarne
2015-08-28Comment out some dead code found with -fwarn-unused-bindshallgren
Also fixed some warnings and tightened some imports
2015-07-21PGF web service: option to leave &+ uninterpreted in linearized outputhallgren
By adding unlexer=none (or unlexer=id) in requests that output linearizations (e.g. command=linearize, command=translate), you can leave &+ uninterpreted instead of gluing the adjacent tokens. This means that the output is left in a format that can be parsed in a subsequent request. To implement this consistently, the function linearizeAndBind was replaced with the function linearizedAndUnlex (but there are a couple of requests that do not call this function...) Note that this applies to the Haskell run-time requests only. The C run-time request (c-linearize, c-translate) always applies the &+ token and the c-parse request can parse input containing glued tokens.
2015-04-17gf -server: include grammar modification time in the info returned by /version hallgren
2015-04-17PGF web service: add command c-linearizeAll to obtain all variantshallgren
Implemented by calling the recently added function PGF2.linearizeAll.
2015-03-24PGF Service: add an option to return syntax trees in JSON formathallgren
The parse/translate/c-parse/c-translate commands now recognize the option jsontree=true to augment the returned JSON structure with a field called "jsontree" next to the field "tree", or "jsontrees" next to "trees", containing the the returned syntax tree in JSON format (the same format returned by the abstrjson command, similar to the format returned in the "brackets" field).
2015-03-19PGF service: add commands c-abstrtree and c-parsetreehallgren
These are the C runtime variants of the absttree and parsetree commands. They work in the same way, but support fewer rendering options.
2015-02-25PGFService: make the restriction on parallelism more effectivehallgren
Restrict the entire request handler instead of just the call to the C parser.
2015-02-24PGFService.hs: text lexer: slightly smarter decapitalization of the first ↵hallgren
word of a sentence Keep the first letter in upper case if it is followed by more upper case letters. (Also remove some left over debugging output.)
2015-02-20PGF Service: limit the number of parallel calls to the C run-time parse ↵hallgren
function to 4 by default The limit can be changed with the -j flag