summaryrefslogtreecommitdiff
path: root/src/GF
AgeCommit message (Collapse)Author
2008-10-03Added | syntax for variants.bjorn
2008-10-02Regenerate source GF parser from GF.cf. Now, when GF/Source/Makefile is ↵bjorn
used, no hand-hacking is needed.
2008-10-02Added src/GF/Source/Makefile for regenerating the GF source parser from GF.cf.bjorn
2008-10-02Converted GF/Source/*.hs to Unix line endings, to be able to see what ↵bjorn
happens when I regenerated the files.
2008-10-02Fail more gracefully on unknown file name extensions.bjorn
2008-10-01added mode 'gf --run' for running silently a script ; made quizzes handle ↵aarne
character encoding correctly ; for this end, collected coding functions in GF.Text.Coding
2008-09-30Use parantheses for precedence in pgf-pretty lincats.bjorn
2008-09-30Added --cfg option for specifying which CFG transformations to use. Added ↵bjorn
startcatonly CFG trasnformation. Removed output formats that are now easily done with --cfg: "regular", "nolr".
2008-09-30Fixed CFG start cats for categories with more than one constituent.bjorn
2008-09-30Use filtering in regular printer.bjorn
2008-09-30SRG conversion: print CFG when a unknown cat is found in renameCats. Do ↵bjorn
filtering in ebnf printer.
2008-09-30pgf-pretty: remove single field record lincat hack. handle f "" (S []) ↵bjorn
correctly.
2008-09-30Some pgf-pretty fixes, including note by Peter about W "apa" (S []).bjorn
2008-09-25Changes to the prolog output formatpeb
2008-09-26Added pgf-pretty output-formatbjorn
2008-09-26Added isLiteralCat function to PGF.Macros.bjorn
2008-09-26Added semantic interpretation tag printing to the *bnf grammar printers.bjorn
2008-09-26Use ebnf format for "regular" output-format.bjorn
2008-09-26Changed nolr printer to use EBNF format.bjorn
2008-09-26ebnf printer: print external cats first.bjorn
2008-09-26bnf and ebnf printer: align ::= symbols.bjorn
2008-09-26SRG category renaming: don't count the external cats when calculating indices.bjorn
2008-09-26Changed SRG category renaming to use GF cat + index among CFG cats for that ↵bjorn
GF cat, instead of the old Concrete syntax name + index among all CFG cats.
2008-09-26Oops, I accidentally disabled all CFG simplification and LR-removal with the ↵bjorn
ENBF printing patch.
2008-09-26Change category naming in CFG generation: the number now starts from 1 for ↵bjorn
each GF category, instead of being the FCFG category number.
2008-09-26Added --output-format=ebnf.bjorn
2008-09-26In CFG generation: don't add linrow number if the lincat has only a single ↵bjorn
constituent.
2008-09-25Added --output-format=nolr. Minor makeRegular refactoring.bjorn
2008-09-25Added --output-format=regular.bjorn
2008-09-25Fixe copy-paste error: srgs_abnf_nonrec produced xml, fixed now.bjorn
2008-09-25Somewhat nicer FCFG output format.bjorn
2008-09-25Added an FCFG output format (--output-format=fcfg). This now lives in ↵bjorn
GF.Speech.PGFToCFG, but should probably move somewhere else.
2008-09-23Got SRGS ABNF generation to compile.bjorn
2008-09-23Added srgs_abnf_nonrec grammar printer to GF.Infra.Options.bjorn
2008-09-23Re-added old PrSRGS_ABNF (does not compile yet).bjorn
2008-09-23use hex in transliteration tableaarne
2008-09-23Telugu transliterationaarne
2008-09-15A somewhat better solution to the words/UTF-8 problem: do encoding last, but ↵bjorn
only on what appears to be string literals.
2008-09-15Temporary fix for the grave accent a encoding problem: change compatPrint to id.bjorn
The problem is that lower case a with a grave accent is coded in UTF-8 as \195\160. Unicode character \160 is non-breaking space, so Haskell's words function will break a UTF-8 encoded string at this character. String literals in the .gfo file are UTF-8 encoded in generateModuleCode, just before the call to prGrammar (which uses compactPrint, which used words). The real solution would be to pretty-print the grammar to Unicode, and then encode as UTF-8. The problem with that is Latin-1 identifers. They are now kept in Latin-1 in the .gfo file, since Alex can't handle Unicode. The real solution to that would be to fix Alex to handle Unicode, but that is non-trivial. GHC interally uses a very hacky .x file to be able to lex UTF-8 source files. An alternative solution that doesn't address the weirdness of using two different encodings in the same .gfo as we do now, is to incorporate compactPrint into the grammar printer, to avoid having to do any postprocessing.
2008-09-10print the search path when we can't find a modulekrasimir
2008-09-09better error msg for missing record labelsaarne
2008-09-09completed IdiomCat to compile api and mathaarne
2008-09-09missing case in param lookup table in GrammartoGFCCaarne
2008-09-09debug information in GrammarToGFCCaarne
2008-09-09show "error" in run interruptibly mode in GFIaarne
2008-09-09enable matching of ++ strings with regular patternsaarne
2008-09-05capitals in lextext and unlextext; notice that a sentence starting with a ↵aarne
proper name now gets lexed with a small letter if lextext is used
2008-09-04convert all values in shell pipes to stringsaarne
2008-09-03Added --haskell-prefix option for changing the constructor prefix in ↵bjorn
generated Haskell modules.
2008-09-03new PGF output format: prolog syntaxpeb
* output a PGF grammar in prolog readable syntax * variables in abstract syntax (hypotheses and lambda-abstractions) are translated to unique logical variables * PGF terms in concrete syntax are translated to more prolog-like terms