1
0
forked from GitHub/gf-core
Commit Graph

236 Commits

Author SHA1 Message Date
krasimir
6b23221085 remove the obsolete GF.Infra.PrintClass 2009-03-13 07:00:04 +00:00
bjorn
210089b6c8 Move Graph, Relation and Graphviz modules from GF.Speech to GF.Data. 2008-11-27 08:43:08 +00:00
bjorn
eedd209458 SRG generation: renameCats now gives new names to all cates used in the grammar, on RHS or LHS. This avoids a crash in non-recursive SRGS generation. The crash happend becase the bottom-up filter has not yet been done when renameCats is called. 2008-11-09 14:27:34 +00:00
krasimir
c72ee23d85 efficient and nicer implementation for literal categories 2008-10-21 14:30:36 +00:00
bjorn
29ca3b692b Replace Category with Type in the PGF API. Added readLanguage and showLanguage. 2008-10-20 11:35:05 +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
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
ed7d52843b Fixed CFG start cats for categories with more than one constituent. 2008-09-30 10:53:36 +00:00
bjorn
3ad9d12c81 Use filtering in regular printer. 2008-09-30 09:39:09 +00:00
bjorn
e1d90c00b9 SRG conversion: print CFG when a unknown cat is found in renameCats. Do filtering in ebnf printer. 2008-09-30 09:32:16 +00:00
bjorn
0e869a3574 Added isLiteralCat function to PGF.Macros. 2008-09-26 15:04:13 +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
9010afef50 ebnf printer: print external cats first. 2008-09-26 09:58:57 +00:00
bjorn
d54ba6f112 bnf and ebnf printer: align ::= symbols. 2008-09-26 09:54:09 +00:00
bjorn
93e9d60765 SRG category renaming: don't count the external cats when calculating indices. 2008-09-26 09:44:02 +00:00
bjorn
d80c71f688 Changed SRG category renaming to use GF cat + index among CFG cats for that GF cat, instead of the old Concrete syntax name + index among all CFG cats. 2008-09-26 09:39:48 +00:00
bjorn
c588e8ca2b Oops, I accidentally disabled all CFG simplification and LR-removal with the ENBF printing patch. 2008-09-26 09:39:04 +00:00
bjorn
8c348f963f Change category naming in CFG generation: the number now starts from 1 for each GF category, instead of being the FCFG category number. 2008-09-26 09:28:03 +00:00
bjorn
824d72bf16 Added --output-format=ebnf. 2008-09-26 09:20:39 +00:00
bjorn
84dec7aaa2 In CFG generation: don't add linrow number if the lincat has only a single constituent. 2008-09-26 09:06:52 +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
716250bcf1 Somewhat nicer FCFG output format. 2008-09-25 08:44:23 +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
c01af6168b Re-added old PrSRGS_ABNF (does not compile yet). 2008-09-23 12:41:44 +00:00
bjorn
f246747496 Completed SISR 1.0 support (untested). 2008-08-24 14:53:21 +00:00
aarne
c5c6d13546 changed names of resource-1.3; added a note on homepage on release 2008-06-25 16:54:35 +00:00
aarne
7d721eb16e removed src for 2.9 2008-06-25 16:43:48 +00:00
meza
9f1e3e7b89 JS.cf : Changed the JS grammar to support strings as property names in objects. Changed pretty much all the files in the same folder as well as GFCCToJS.hs and SISR.hs to reflect the changes. 2008-04-29 13:05:24 +00:00
bringert
070ccd045d Added newlines and ends of some files. This makes sed happy. 2007-12-20 17:07:56 +00:00
aarne
61a9bdbe34 removed dep. on GFCCRaw 2007-12-14 09:25:18 +00:00
aarne
03589b5a3c restored CanonToGFCC as a wrapper of GFCC generation 2007-12-14 07:31:53 +00:00
aarne
095018c8e4 new GFCC concrete syntax in place everywhere 2007-12-13 20:19:47 +00:00
aarne
122546b9d6 gf works with the new gfcc format 2007-10-05 12:54:29 +00:00
bringert
731b5c4f98 CFRules tracing. 2007-06-28 01:26:09 +00:00
bringert
448e1db488 -printer=regexp handles precedence 2007-06-28 01:25:36 +00:00
bringert
f2710ba80d bottom-up and top-down filtering do not need fix point iteration. 2007-06-27 17:46:34 +00:00
bringert
674424c252 Refactor TransformCFG: use Map for CFRules. 2007-06-27 17:22:59 +00:00
bringert
f664497bcd Make bottomUpFilter better by also removing categories which contain no finite strings. 2007-06-27 16:27:55 +00:00
bringert
836e596189 Print SRG stats when preprocessing grammar. 2007-06-27 16:27:08 +00:00
bringert
6bd9a9faaf Use shorter lines and paragraph-filling in SRGS, JSGF and GSL printing. 2007-06-27 14:25:39 +00:00
bringert
6c074d38c6 Limit GSL/JSGF/SRGS ABNF grammar line width to 80. 2007-06-27 09:07:51 +00:00
bringert
9cf1ae6112 Fewer redundant parantheses in JSGF and SRGS ABNF. 2007-06-26 16:51:09 +00:00
bringert
ee39e2c742 SRGS XML: the meta tag should use empty tag short-hand. 2007-06-26 15:20:32 +00:00
bringert
84e030d128 Oops, I had managed to remove the preprocessing step in makeSimpleRegular, which broke SLF and non-rec SRGS generation for grammars which need bottom-up filtering. 2007-06-26 15:09:48 +00:00
bringert
77920fd23a Eliminate more redundant item tags in SRGS XML. 2007-06-26 12:27:46 +00:00
bringert
eb92a9bf8f Produce less verbose SRGS XML, by eliminating redundant item tags. 2007-06-26 12:19:30 +00:00