summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-02-09news on Summer School on the main pageaarne
2015-01-30added hasLinearization in the Haskell bindingkr.angelov
2015-01-27Phrasebook compiled for Japanese; weather_N in DictionaryGeraarne
2015-01-21added Japanese to Android app. Had to change target=android-20 to 21.aarne
2015-01-21Wide Coverage Translation Demo: use App13.pgf, adding support for Japanesehallgren
Japanese uses the same lexer as Chinese, i.e. every character is a separate token.
2015-01-21PGF2: fixes for named entity callback functionhallgren
2015-01-21examples/phrasebook/Makefile: include Jpn in 'make forApp'hallgren
2015-01-21PGF2 & PGFService: enable callbacks for named entities and chunks in the ↵hallgren
c-parse & c-translate web requests
2015-01-21fix conflictskr.angelov
2015-01-20added functionType in the Haskell API to the C runtimekr.angelov
2015-01-20PGF2 & PGFService: work in progress on callbacks for nerc & chunkshallgren
2015-01-20PGF2: introduced some type synonyms to make type signature more readablehallgren
2015-01-19Translating linearization functions to Haskell: move a common record type to ↵hallgren
PGF.Haskell Move the Haskell representation of the common linearization type {s:T} to the shared module PGF.Haskell, so that the same overloaded projection function proj_s can be used for all concrete syntaxes.
2015-01-19Change minibar URL to cloud.gf.org in QuickStart pagejohn.j.camilleri
2015-01-14AppJpn.gf and a Makefile entry for App13 which includes Japanese. Everything ↵aarne
compiles now. But Japanese has no support for chunks, because ChunkFunctor does not typecheck for it due to its richer Utt type.
2015-01-14gf.cabal: include PGF.Haskellhallgren
2015-01-14Translating linearization functions to Haskell: better treatment of special ↵hallgren
tokens Common code has been lifted out from the generated Haskell modules to an auxiliary module PGF.Haskell, which is currently included in the regular PGF library, although it is independent of it and probably belongs in a separate library. The type Str used by linearization functions is now based on a token type Tok, which is defined in PGF.Haskell. PGF.Haskell.Tok is similar to the type GF.Data.Str.Tok, but it has constructors for the special tokens BIND, SOFT_BIND and CAPIT, and there is a function fromStr :: Str -> String that computes the effects of these special tokens.
2015-01-08Translating linearization functions to Haskell: add support for pre {...}hallgren
STILL TODO: - variants - better treatment of special tokens BIND, SOFT_BIND & CAPIT.
2015-01-07patchJpnlizazim
2015-01-07Translating linearization functions to Haskell: use qualified names to avoid ↵hallgren
name clashes All languages in the Phasebook can now be converted to compilable Haskell code. STILL TODO: - variants - pre { ... }
2015-01-06Translating linearization functions to Haskell: significant code size reductionshallgren
+ Instead of including lists of parameter values generated by GF, generate code to enumerate parameter values (in the same order as GF). This seems to give a factor of 2-3 code size reduction in the Phrasebook (e.g. from 84MB to 25MB for Hin, from 338MB to 154MB for Fre). + Deduplicate table entries, i.e. convert "table [..,E,..,E,..,E,..]" into "let x = E in table [..,x,..,x,..,x,..]". This gives even more significant code size reduction in some cases, e.g. from 569MB to 15MB for PhrasebookFin. All phrasebook languages can now be converted to compilable Haskell code, except PhrasebookPes, which still has the name clash problem.
2015-01-06More work on translating linearization functions to Haskellhallgren
Many Phrasebook languages can now be converted to compilable Haskell code. Some languages (Fre, Hin, Snd, Urd) generate too much Haskell code to be practically useful (e.g. 338MB for Fre). One language (Fin) took too long to convert to Haskell. One language (Pes) has problems with name clashes in the generated Haskell code. STILL TODO: - variants - pre { ... } - reduce code duplication for large tables - generate qualified names to avoid name clashes
2015-01-05fix the reference counting for callbacks in Pythonkr.angelov
2014-12-29API for word alignment in the C runtime and in the Haskell bindingkr.angelov
2014-12-24more compact implementation for GuStringBufkr.angelov
2014-12-19lowered Symb_Chunk probability; fixed translator Makefileaarne
2014-12-19bugfix and tiny optimization for callbacks from Haskellkr.angelov
2014-12-19haddock comments for parseWithHeuristicskr.angelov
2014-12-19added mkStr to the Haskell bindingkr.angelov
2014-12-19added mkApp to the Haskell bindingkr.angelov
2014-12-16fix in the Haskell bindingkr.angelov
2014-12-16forgot to export parseWithHeuristics from Haskellkr.angelov
2014-12-16change in the API for literalskr.angelov
The API in the C runtime as well as in the Haskell, Python and Java binding is changed. Now instead of adding the literal callbacks to the concrete syntax you need to supply them every time when you need to parse. The main reason is: - referentially transparent API for Haskell - when we start using memory mapped files we will not be allowed to change anything in the grammar data structures. At that point the old API would be impossible to use.
2014-12-15bin/build-binary-dist.sh: remove hardwired install path and version numberhallgren
Also improved tolerance to paths containing white space.
2014-12-15gf.cabal: include editor modes in the list of data files to installhallgren
Also add ghc-7.8.3 to the list of tested compiler versions
2014-12-11bump the version code in AndroidManifest.xmlkr.angelov
2014-12-11Setup.hs: compile Alltenses before Presenthallgren
When mkPresent (or another preprocessor) is used, error messages from GF will show the file name _gf_preproc.tmp instead of the name of the file where the error occurred. By compiling Alltenses first, the real file name will appear in error messages (unless the error only happens then mkPresent is used).
2014-12-11update the nerc for the changes in the grammarkr.angelov
2014-12-11updates in app help file, e.g. the app nameaarne
2014-12-11Work in progress on translating linearization functions to Haskellhallgren
The translation is currently good enough to translate all concrete syntaxes of the Foods and Letter grammars, and some concrete syntaxes of the Phrasebook grammar (e.g. PhrasebookEng & PhrasebookSpa works, but there are problems with e.g. PhrasebookSwe and PhrasebookChi) This functionality is enabled by running gf -make -output-format=haskell -haskell=concrete ... TODO: - variants - pre { ... } - eta expansion of linearization functions - record subtyping can still cause type errors in the Haskell code in some cases - reduce code large tables
2014-12-11GF.Grammar.Macros: generalize the type of collectOphallgren
New type: collectOp :: Monoid m => (Term -> m) -> Term -> m
2014-12-11GF.Server: remove some code duplicationhallgren
2014-12-11back to familiar you in Hindikr.angelov
2014-12-11update gf-translator.svgkr.angelov
2014-12-10edit the presentation imagekr.angelov
2014-12-10rename HLCompiler to GFTranslatorkr.angelov
2014-12-10added presentation image for the appkr.angelov
2014-12-10make the GF logo fit precisely in a squarekr.angelov
2014-12-09make sure that the app doesn't crash even if nonExist is used somewhere in ↵kr.angelov
the grammars
2014-12-09make sure that neither I nor I'm is recognized as name in Englishkr.angelov