summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2013-11-15add additional options for compiling the Java binding on Windows (suggested ↵kr.angelov
by Normunds)
2013-11-14gfse: re-enable example-based grammar constructionhallgren
2013-11-13add two files from the Android app that were forgotenkr.angelov
2013-11-13bugfix in the C runtime which had made the parser up to 200 times slower for ↵kr.angelov
some sentences
2013-11-13the dictionary view in the Android app now shows both the source and the ↵kr.angelov
target linearizations
2013-11-13minor bugfix in the translator keyboardkr.angelov
2013-11-13now the Android App has a translation keyboard which allows the translations ↵kr.angelov
to be done from inside another application
2013-11-12Fix Issue 60: Weird output when executing system commands from the gf shellhallgren
The system_pipe (aka "?") command creates a temporary file _tmpi containing the input of the system command. It *both* appends _tmpi as an extra argument to the system command line *and* adds an input redirection "< _tmpi". (It also uses and output redirection "> _tmpo" to captures the output of the command.) With this patch, the _tmpi argument is no longer appended to the command line. This allows system_pipe to work with pure filters, such as the "tr" commands, but it will no longer work with commands that require an input file name. (It is possible to use write_file instead...) TODO: it would also be fairly easy to eliminate the creation of the _tmpi and _tmpo files altogether.
2013-11-12Fix Issue 68: Cannot use an overloaded operator in table defined using ↵hallgren
square brackets Add proper type checking of course-of-values tables: + Make sure that all subterms have the same type. + Resolve overloaded operators. Note though that the GF book states in C.4.12 that the "course-of-values table [...] format is not recommended for GF source code, since the ordering of parameter values is not specified and therefore a compiler-internal decision."
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