summaryrefslogtreecommitdiff
path: root/src/runtime/haskell-bind
AgeCommit message (Collapse)Author
2017-09-01rename the pgf2-bind package to pgf2Krasimir Angelov
2017-09-01bugfix in showType from the C runtimeKrasimir Angelov
2017-09-01complete details for the "ai" command in the C shellKrasimir Angelov
2017-09-01added function treeProbability in the Haskell bindingKrasimir Angelov
2017-08-31graphvizWordAlignment in the C runtimeKrasimir Angelov
2017-08-31the C runtime now supports the same customizations for GraphViz as the ↵Krasimir Angelov
Haskell runtime
2017-08-30bugfix for hasLinearization in the Haskell bindingKrasimir Angelov
2017-08-30"ma" command in the C shellKrasimir Angelov
2017-08-30added tabularLinearizeAll in the Haskell bindingKrasimir Angelov
2017-08-30change tabularLinearize in the Haskell binding to return a list instead of ↵Krasimir Angelov
map this preserves the order
2017-08-30added the concreteName function in the Haskell bindingKrasimir Angelov
2017-08-29the embedded grammars now work with both the pure Haskell and the Haskell ↵Krasimir Angelov
binding API
2017-08-29added bracketedLinearize in the Haskell bindingKrasimir Angelov
2017-08-28tabularLinearize in the Haskell bindingKrasimir Angelov
2017-05-12a binding to the sentence lookup from Haskellkrasimir
2017-04-13gu_string_buf -> gu_new_string_buf in libgukrasimir
2017-04-12update SG.hsckrasimir
2017-02-10safer memory management in the Haskell bindingkrasimir
2017-01-26API for computing the Haskell bindingkrasimir
2017-01-26use throwIO instead of throw in a few placedkrasimir
2017-01-26type checking API in the Haskell bindingkrasimir
2017-01-26a better implementation for PGF2.categorieskrasimir
2017-01-26forgot to add src/runtime/haskell-bind/PGF2/Type.hsckrasimir
2017-01-26bring the Haskell binding a bit closer to the pure Haskell APIkrasimir
2017-01-26copy the types for BracketedString from the Haskell runtime to the Haskell ↵krasimir
bindings
2017-01-26added mkMeta and unMeta in the Haskell bindingkrasimir
2017-01-26added mkAbs and unAbs in the Haskell bindingkrasimir
2017-01-26more startCat to the Types section in the Haddock documentation for the ↵krasimir
Haskell binding
2017-01-26add unStr,unInt and unFloat in the Haskell bindingkrasimir
2017-01-25improve the documentation for PGF2krasimir
2017-01-25add functionsByCat in the Haskell bindingkrasimir
2017-01-25bugfix in the Haskell bindingkrasimir
2016-05-30fix in the Haskell binding: functionType should throw error if the function ↵krasimir
is not defined
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
2016-05-11many of the uses of peekCString and withCString in the Haskell binding were ↵krasimir
incorrect since they encode the string in the system locale while the C runtime is always using UTF8
2016-05-10fix the offset for oracles in Haskellkrasimir
2016-05-10an API for oracles in the GF parserkrasimir
2016-04-29a prototype for complex queries over expressions in libsgkrasimir
2015-12-22added API for reading a list of tuples in the SG modulekrasimir
2015-12-20added a primitive full-text search index in libsg. This can be use for ↵krasimir
finding an abstract tree whose linearization matches given keywords
2015-11-25added readTriple in libsg and its Haskell bindingkrasimir
2015-11-19added mkInt and mkFloat in the Haskell binding to make it easy to create ↵krasimir
literal expressions
2015-09-14haskell-bind/SG.hsc: fix unsafePerformIO import problem with ghc>=7.8hallgren
2015-09-10PGF2.Expr: a fix for ghc-7.6hallgren
Apparently Foreign.unsafePerformIO is not just a re-export of System.IO.Unsafe.unsafePerformIO (or vise versa), it is a different function, so you get an ambiguity if you import both.
2015-09-08add readTriple in the Haskell bindingkrasimir
2015-09-04the Haskell binding now covers everything in the libsg APIkrasimir
2015-09-03PGF2.Expr fixeshallgren
It needs to be listed in gf.cabal unsafePerformIO is only exported from System.IO.Unsafe, starting with ghc-7.8
2015-09-02added the minimal Haskell API for storing expressions/triples in the ↵krasimir
semantic graph
2015-08-20PGF2: export BindType(..) and two new functions: showType & categorieshallgren
showType :: Type -> String categories :: PGF -> [Cat] But both are implemented as quick hacks: categories is implemented by listing all functions and taking the target categories from their types. showType uses ppType copied & modified from PGF.Type, and needs a ppExpr, which is currently implemented by wrapping showExpr... TODO: need something correpsonding to PGF.categoryContext.
2015-08-10gf -cshell: preliminary support for the C run-time system in the GF shellhallgren
Some C run-time functionality is now available in the GF shell, by starting GF with 'gf -cshell' or 'gf -crun'. Only limited functionality is available when running the shell in these modes: - You can only import .pgf files, not source files. - The -retain flag can not be used and the commands that require it to work are not available. - Only 18 of the 40 commands available in the usual shell have been implemented. The 'linearize' and 'parse' commands are the only ones that call the C run-time system, and they support only a limited set of options and flags. Use the 'help' commmands for details. - A new command 'generate_all', that calls PGF2.generateAll, has been added. Unfortuntaly, using it causes 'segmentation fault'. This is implemented by adding two new modules: GF.Command.Commands2 and GF.Interactive2. They are copied and modified versions of GF.Command.Commands and GF.Interactive, respectively. Code for unimplemented commands and other code that has not been adapted to the C run-time system has been left in place, but commented out, pending further work.