summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2013-11-12GF.System.Chatch: remove redundant #includehallgren
2013-11-12added Predef.SOFT_BIND. This special token allows zero or more spaces ↵kr.angelov
between ordinary tokens. It is also used in the English RGL to attach the commas to the previous word.
2013-11-11Fix Issue 41: "," in context-free rules causes parsing failurehallgren
The CF parser in GF.Grammar.CF assigns function names to the rules, but they are not always unique, causing rules to be dropped in the follwing CF->GF conversion. So a pass has been added before the CF->GF conversion, to make sure that function names are unique. A comment says "rules have an amazingly easy parser", but the parser looks like quick hack. It is very sloppy and silently ignores many errors, e.g. - Explicitly given function names should end with '.', but if the do not, the last character in the function name is silently dropped. - Everything following a ';' is silently dropped.
2013-11-11Fix issue 61: GF shell cannot parse a system command ending with a spacehallgren
Trailing spaces caused the command line parse to be ambiguous, and ambiguous parses were rejected by function readCommandLine, causing the cryptic error message "command not parsed".
2013-11-07factor of 3 speedup for the translation without slowing down the grammar ↵kr.angelov
loading. The parser still seems to be 8 times slower than before I introduced the BIND. At least the Android UI now feels a lot more comfortable
2013-11-07bugfix in the binary search implementation in libgukr.angelov
2013-11-07remove redundant type signature in gu/seq.hkr.angelov
2013-11-07fix for the memory allocation in the jitter which should work for Windows.kr.angelov
2013-11-07the 'Release' configuration in Eclipse is renamed to 'Release (posix)'. In ↵kr.angelov
addition now there is 'Release (mingw)' for Windows.
2013-11-07added #ifdef to detect MinGW in the Java binding and to import the right ↵kr.angelov
header for alloca
2013-11-06more compact inflection tables for Swedishkr.angelov
2013-11-06minibar: fix a mistake the previous bracket fixhallgren
2013-11-06minibar: adapt to changed bracket structure in linearization outputhallgren
2013-11-06fix in the parsing with prekr.angelov
2013-11-06added inflection_sv.xmlkr.angelov
2013-11-06bugfix in the Java bindingkr.angelov
2013-11-06Make PGF.Tree internalhallgren
The only use of PGF.Tree outside the PGF library was in GF.Command.Commands, and it was eliminated by using PGF.Expr directly instead. PGF.Paraphrase still uses PGF.Tree.
2013-11-06Remove PGF.Signaturehallgren
This module should not be part of the public PGF library API, and it was only used in GF.CompileToAPI, so the code was moved there. The module defined constFuncs and syntaxFuncs, but only syntaxFuncs was used.
2013-11-06fix the deserialization of flags from the GFO fileskr.angelov
2013-11-06use the inflection_cmn.xml in the Android translatorkr.angelov
2013-11-06the content of ParseEngAbs3.probs is now merged with ParseEngAbs.probs. The ↵kr.angelov
later is now retrained. Once the grammar is compiled with the .probs file now it doesn't need anything more to do robust parsing. The robustness itself is controlled by the flags 'heuristic_search_factor', 'meta_prob' and 'meta_token_prob' in ParseEngAbs.gf
2013-11-06when printing floating literals use %lg instead of %lf for better outputkr.angelov
2013-11-05added a -treebank option to the lc commandaarne
2013-11-05restored old language codes in android/.../Translator.java (committed by ↵aarne
accident in previous patch)
2013-11-05linearization by chunks in the GF shell: a new command 'lc' needed because ↵aarne
'l' requires type checking and trees with metavariable function heads don't type check. This will hopefully be a temporary command.
2013-11-05Eliminate mutual dependencies between the GF compiler and the PGF libraryhallgren
+ References to modules under src/compiler have been eliminated from the PGF library (under src/runtime/haskell). Only two functions had to be moved (from GF.Data.Utilities to PGF.Utilities) to make this possible, other apparent dependencies turned out to be vacuous. + In gf.cabal, the GF executable no longer directly depends on the PGF library source directory, but only on the exposed library modules. This means that there is less duplication in gf.cabal and that the 30 modules in the PGF library will no longer be compiled twice while building GF. To make this possible, additional PGF library modules have been exposed, even though they should probably be considered for internal use only. They could be collected in a PGF.Internal module, or marked as "unstable", to make this explicit. + Also, by using the -fwarn-unused-imports flag, ~220 redundant imports were found and removed, reducing the total number of imports by ~15%.
2013-11-04fix the debug mode of the JIT compiler after the refactoring in libgukr.angelov
2013-11-04A simple type checker in the C runtime. Dependent types are not supported ↵kr.angelov
yet but HOAS is implemented. The API is accessible from Python as well
2013-11-04bug fix in the linearizerkr.angelov
2013-11-02linearization for HOAS trees. It should word but we need a type checker in ↵kr.angelov
order to test it properly
2013-11-02remove the include of lexer.h from pgf-parsekr.angelov
2013-11-01fix the parseval metric after the redesign in the C runtimekr.angelov
2013-11-01bugfix in the linearizerkr.angelov
2013-11-01make gu_exn_is_raised non inlined. this is useful to make it callable from ↵kr.angelov
Haskell
2013-11-01left AR's translation project names in android/.../Translator.java as ↵aarne
comments instead of leaving the changes uncommitted
2013-11-01fix the robust parser for unknown tokenskr.angelov
2013-11-01bugfix in linearizer.ckr.angelov
2013-11-01remove the include to mman.h in jit.c since it doesn't seem to be usedkr.angelov
2013-10-31add the forgoten close_arrow.pngkr.angelov
2013-10-31trim the input string in the conversation view for better lexical matchingkr.angelov
2013-10-31make the input mode in the Android translator persistentkr.angelov
2013-10-31Add a cabal flag to use the standard binary packagehallgren
The standard binary package has improved efficiency and error handling [1], so in the long run we should consider switching to it. At the moment, using it is possible but not recommended, since it results in incomatible PGF files. The modified modules from the binary package have been moved from src/runtime/haskell to src/binary. [1] http://lennartkolmodin.blogspot.se/2013/03/binary-07.html
2013-10-31update the TAG for the MainActivitykr.angelov
2013-10-31store the source and target languages for the Android UI in a preference filekr.angelov
2013-10-31when the phone is in silent mode the UI should not use the TTSkr.angelov
2013-10-31fix the parsing error in the Android appkr.angelov
2013-10-31fixed utf-8 decoding problem in libgukr.angelov
2013-10-31bracketedLinearize in Python is now using the linrefkr.angelov
2013-10-30use linref in the C linearizer. The robust linearization is now fully supportedkr.angelov
2013-10-30fix the debug mode in the linearizer after the refactoring in libgukr.angelov