1
0
forked from GitHub/gf-core
Commit Graph

367 Commits

Author SHA1 Message Date
bjorn
21e3858442 Honor --erasing flag from command-line also when compiling existing .gfo to PGF. 2008-10-16 08:27:43 +00:00
krasimir
bb6623f6e7 high-order syntax in PMCFG 2008-10-15 14:58:00 +00:00
krasimir
063b82cf6c rename some variable names 2008-10-15 09:43:15 +00:00
bjorn
58381a95a4 Merge ModuleOptions and Options. 2008-10-15 11:55:18 +00:00
bjorn
50ed99e9b1 Added OPTIONS class to make options handling somewhat nicer. Next, I will merge Flags and ModuleFlags. 2008-10-15 11:38:34 +00:00
krasimir
cdff4db5c4 rename emptyFRulesEnv to emptyGrammarEnv 2008-10-15 09:26:01 +00:00
krasimir
8386c8b939 threat category _Var as a literal category 2008-10-15 08:38:34 +00:00
krasimir
ebef7ecb7b store the total number of PMCFG categories in the PGF file 2008-10-15 07:47:57 +00:00
krasimir
50fc82d4db literal categories in the incremental parser 2008-10-14 15:29:50 +00:00
krasimir
e94f1cf2c7 remove trace in the PMCFG compilation 2008-10-14 09:40:55 +00:00
krasimir
1fc909c101 the new optimized incremental parser and the common subexpression elimination optimization in PMCFG 2008-10-14 08:00:50 +00:00
bjorn
7a5d3da347 Added option to treat some categories as lexical when generating Haskell data types. 2008-10-10 11:55:12 +00:00
aarne
673bc27755 adapted old AbsCompute for use with source GF terms 2008-10-05 18:01:42 +00:00
aarne
1f8c999f1b prevent pgf from being empty when there are no concrete syntaxes 2008-10-05 15:44:16 +00:00
aarne
be9ff0cbca forced checking def definitions; accept pgf with no concretes 2008-10-05 15:21:08 +00:00
aarne
56c2c0e067 print full types instead of lock field heuristics in overload resolution if the heuristic is misleading 2008-10-03 18:18:21 +00:00
aarne
4b707dbf01 return error on undefined opers in instance and resource 2008-10-03 16:16:45 +00:00
bjorn
f362f6ad01 Regenerate source GF parser from GF.cf. Now, when GF/Source/Makefile is used, no hand-hacking is needed. 2008-10-02 14:11:41 +00:00
bjorn
cec77015ad Use parantheses for precedence in pgf-pretty lincats. 2008-09-30 12:02:58 +00:00
bjorn
14373feb3a Added --cfg option for specifying which CFG transformations to use. Added startcatonly CFG trasnformation. Removed output formats that are now easily done with --cfg: "regular", "nolr". 2008-09-30 11:52:11 +00:00
bjorn
6791378846 pgf-pretty: remove single field record lincat hack. handle f "" (S []) correctly. 2008-09-30 09:31:31 +00:00
bjorn
662663ffa3 Some pgf-pretty fixes, including note by Peter about W "apa" (S []). 2008-09-30 07:24:01 +00:00
peb
bfcfb513f3 Changes to the prolog output format 2008-09-25 07:32:39 +00:00
bjorn
2884598b7c Added pgf-pretty output-format 2008-09-26 15:21:32 +00:00
bjorn
8fe2a1cc59 Added semantic interpretation tag printing to the *bnf grammar printers. 2008-09-26 12:57:20 +00:00
bjorn
b64d25b3be Use ebnf format for "regular" output-format. 2008-09-26 10:20:18 +00:00
bjorn
a84849bee2 Changed nolr printer to use EBNF format. 2008-09-26 10:03:42 +00:00
bjorn
824d72bf16 Added --output-format=ebnf. 2008-09-26 09:20:39 +00:00
bjorn
367cc0acb9 Added --output-format=nolr. Minor makeRegular refactoring. 2008-09-25 13:41:07 +00:00
bjorn
8001ea8ea0 Added --output-format=regular. 2008-09-25 11:49:00 +00:00
bjorn
4d96eb7e9a Fixe copy-paste error: srgs_abnf_nonrec produced xml, fixed now. 2008-09-25 11:36:04 +00:00
bjorn
90b2441c34 Added an FCFG output format (--output-format=fcfg). This now lives in GF.Speech.PGFToCFG, but should probably move somewhere else. 2008-09-25 08:41:49 +00:00
bjorn
0d1b2c01b9 Got SRGS ABNF generation to compile. 2008-09-23 12:56:25 +00:00
bjorn
3857f4a6a6 A somewhat better solution to the words/UTF-8 problem: do encoding last, but only on what appears to be string literals. 2008-09-15 13:16:04 +00:00
krasimir
2d6e7ad625 print the search path when we can't find a module 2008-09-10 08:55:16 +00:00
aarne
279c0367d8 better error msg for missing record labels 2008-09-09 19:43:33 +00:00
aarne
3da1d10eb9 completed IdiomCat to compile api and math 2008-09-09 16:11:05 +00:00
aarne
fa02871525 missing case in param lookup table in GrammartoGFCC 2008-09-09 15:33:56 +00:00
aarne
4f560ea668 debug information in GrammarToGFCC 2008-09-09 14:04:37 +00:00
aarne
b3af35a88e show "error" in run interruptibly mode in GFI 2008-09-09 06:58:38 +00:00
bjorn
dbe3571fcc Added --haskell-prefix option for changing the constructor prefix in generated Haskell modules. 2008-09-03 15:42:11 +00:00
peb
8952a626d0 new PGF output format: prolog syntax
* 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
2008-09-03 09:04:09 +00:00
aarne
65e92e6dab infForm added to Catalan ; debugging alternative in PGF generation 2008-08-23 14:26:34 +00:00
bjorn
acf1a17268 In GF.Compile.Export, output file name extensions should not have double dots. 2008-08-22 09:27:44 +00:00
bjorn
243bd895e4 Added srgs_xml_nonrec output format. 2008-08-22 08:43:58 +00:00
aarne
b962c3a0d3 alternative prtType to help debugging overload resolution errors 2008-08-20 06:44:58 +00:00
bjorn
4925580877 When producing PGF, do UTF-8 encoding of the whole file after pretty printing instead of walking through the PGF structure before pretty-printing.
The old code was brittle, and only converted strings in the lins and opers, not in printnames and parsers. The old code also double encoded some grammars when using gfc to combine PGF files.
2008-08-18 12:34:56 +00:00
aarne
20fe8a8c20 improved error message in pgf compilation to help debugging 2008-08-16 12:27:59 +00:00
aarne
1302960992 forgiving names in concrete that are not in abstract, with a warning (no warning guaranteed if this is because restricted inheritance) 2008-08-14 20:25:52 +00:00
bjorn
b296099441 Include concrete syntax flags in generated JS. 2008-08-13 12:08:11 +00:00