Commit Graph
100 Commits
Author SHA1 Message Date
bringert 0c05a33d82 Use darcs dist instead of darcs get in make dist. This should get around the problem with partial repositories. 2007-07-08 18:32:45 +00:00
bringert bece5b2974 Nicer mkDet usage in Toy0I 2007-07-06 12:03:47 +00:00
bringert 51cba70815 Use compiled.tgz in dist and install-lib. 2007-07-05 12:25:00 +00:00
bringert 2938c2082d Set build variable in config.mk 2007-07-05 12:23:39 +00:00
bringert 7ef52f7cc8 Changed dist target to work with current darcs version. 2007-07-04 15:38:42 +00:00
bringert 849561bb18 Added lib target to src/Makefile. It builds all the resource-1.0 modules. 2007-07-04 15:30:07 +00:00
bringert 51d3ade165 Install compiled resource modules in source and binary installs. 2007-07-04 13:27:22 +00:00
bringert 5e58041cfd Remove old VCS configure flags. 2007-07-04 13:27:04 +00:00
bringert 7114ca47af Fixed NOINLINE bug in Today.hs 2007-07-04 13:26:17 +00:00
bringert 39de0bca42 Build GF/Today.hs directly from Makefile. Include libdir. 2007-07-04 12:49:01 +00:00
bringert 0f8ef7432c Fized some typos in Toy1. 2007-07-04 11:27:06 +00:00
bringert da6e0efc11 CFRules tracing. 2007-06-28 01:26:09 +00:00
bringert cbf851b516 -printer=regexp handles precedence 2007-06-28 01:25:36 +00:00
bringert af45f33d51 bottom-up and top-down filtering do not need fix point iteration. 2007-06-27 17:46:34 +00:00
bringert af36dcf13d Refactor TransformCFG: use Map for CFRules. 2007-06-27 17:22:59 +00:00
bringert bb09506ece Make bottomUpFilter better by also removing categories which contain no finite strings. 2007-06-27 16:27:55 +00:00
bringert 92b1b85a1f Print SRG stats when preprocessing grammar. 2007-06-27 16:27:08 +00:00
bringert c3c84f6574 Comment out tracing in CanonToGFCC. It produces lots of junk when generating SRGs. 2007-06-27 15:39:42 +00:00
bringert 2ff350ae59 Use shorter lines and paragraph-filling in SRGS, JSGF and GSL printing. 2007-06-27 14:25:39 +00:00
bringert e7787025f6 The no-functor toy0 english now uses N for Noun. 2007-06-27 13:00:09 +00:00
bringert a22de1a9f6 Cleaned up names and paths in toy0 grammars. 2007-06-27 12:50:42 +00:00
bringert ab99a1f89a Added no-functor version of Toy0Eng.gf 2007-06-27 12:42:25 +00:00
bringert 8a223031b5 Added english and french parameterized toy0 cocnrete sytnaxes. 2007-06-27 12:40:25 +00:00
bringert 54d5325171 Moved the different versions of the toy0 concrete modules to different subdirectories. 2007-06-27 12:38:24 +00:00
bringert 43128f80e6 Limit GSL/JSGF/SRGS ABNF grammar line width to 80. 2007-06-27 09:07:51 +00:00
bringert 3b93e0ffe2 Fewer redundant parantheses in JSGF and SRGS ABNF. 2007-06-26 16:51:09 +00:00
bringert 99ac3f8d73 SRGS XML: the meta tag should use empty tag short-hand. 2007-06-26 15:20:32 +00:00
bringert 88653403fc 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 3371605af0 Eliminate more redundant item tags in SRGS XML. 2007-06-26 12:27:46 +00:00
bringert 7eaa2af27c Produce less verbose SRGS XML, by eliminating redundant item tags. 2007-06-26 12:19:30 +00:00
bringert 22ef3cbc04 Implement makeNonRecursiveSRG by conversion through MFA instead of directly to RE. 2007-06-25 16:50:28 +00:00
bringert eb9a6f7c73 Added srgs_abnf_non_rec. 2007-06-25 16:50:00 +00:00
bringert b17e74bca5 Document non-recursive SRGS. 2007-06-25 16:49:36 +00:00
bringert 862c780f78 Some clean-up in finite-state network generation: MFA now keeps track of start lattice name, instead of having a wrapper lattice. Replaced MFALabel with Symbol. 2007-06-25 16:25:58 +00:00
bringert b086183c0f Added non-recursive SRGS printing. 2007-06-25 13:39:26 +00:00
bringert 2b63a89569 Some refactorings needed for recursion removal. 2007-06-25 13:38:40 +00:00
bringert 16bfb1250b Added makeSRG. 2007-06-21 13:40:13 +00:00
bringert 336273c534 SRG always has RE rhs. 2007-06-21 13:11:26 +00:00
bringert bff87e513a Removed some unused imports of GF.Speech.SRG. 2007-06-21 12:52:59 +00:00
bringert 6968004f19 Added regexps grammar printer. This is a first step towards recursion-free SRGS. 2007-06-20 16:08:23 +00:00
bringert 91dcc27668 Added language flags to bronzeage grammars. 2007-06-20 12:22:28 +00:00
bringert a27643baed Added a simple cabal build system for the embedded API. 2007-06-14 16:08:38 +00:00
bringert 3edaa60988 Move some type annotations from patterns to expressions. Haskell 98 does not allow type signatures in expressions. 2007-06-14 16:02:07 +00:00
bringert 1fa928516c Added OPTIONS_GHC -fglasgow-exts to files that use GHC extensions. 2007-06-14 15:58:36 +00:00
bringert eb89dc2dfe Fixed < > encoding in int parameter example in gf-history. 2007-05-11 13:35:43 +00:00
bringert e4ef09f6aa Added haskell_gadt -printer. It does not include a Compos instance yet, so it's not terribly useful. 2007-05-10 13:56:41 +00:00
bringert 94d4ec728c Fixed use of -unlexer in EmbedAPI. Before, EmbedAPI.linearize ignored the flags in the grammar. 2007-04-21 16:20:02 +00:00
bringert 273dc7120f Nicer formatting of generated GSL. 2007-03-27 10:21:16 +00:00
bringert 5abf240a98 Remove all empty SLF nodes, don't care about edge explosion. Empty nodes are pprobably worse than lots of edges. 2007-03-26 17:36:58 +00:00
bringert 3797cfd11e Use EBNF compaction for GSL. 2007-03-26 14:51:24 +00:00
bringert 5faf418f4e Fixed SISR bug. 2007-03-26 13:12:04 +00:00
bringert 005ad917d9 Added directly cyclic SRG test case. 2007-03-25 16:44:30 +00:00
bringert 90ddf726c1 Give SRG test cases human-readable names. 2007-03-25 16:42:52 +00:00
bringert de0ca9f533 commented LC_LR modification 2007-03-25 16:34:53 +00:00
bringert 4490e256a8 Also remove indirectly cyclic productions. 2007-03-25 16:34:35 +00:00
bringert 80ea351e5e Removed srg0006, it was a duplicate of srg0002 2007-03-25 16:34:11 +00:00
bringert 85072fb6b2 Added srg0006: A grammar with a cycle caused by an empty production. 2007-03-25 16:11:51 +00:00
bringert 4331167011 Comments only. 2007-03-25 11:26:03 +00:00
bringert ed1e7f4485 SRG generation: merge categories with identical set of productions. The LC_LR algorithm produces lots of those, especially when there is little inflection. 2007-03-24 23:29:38 +00:00
bringert 4fdc0b598a Modified the LC_LR implementation to only produce rules using A-X categories when those categories have any productions. 2007-03-24 17:30:04 +00:00
bringert 61456fd9ca Better debugging output when SRG generation crashes because of a missing category. 2007-03-24 17:26:21 +00:00
bringert 2885cfc5ac Just renaming in srg0005 2007-03-24 17:25:07 +00:00
bringert eca7f691a6 Shrunk srg0005 2007-03-24 15:48:29 +00:00
bringert 407b4bea9c More srg test cases. 2007-03-24 15:34:33 +00:00
bringert e52adbde2e Added srg0004: a simple left-recursive grammar. 2007-03-24 15:13:18 +00:00
bringert 5dc92edbb0 Added srg0003: test case for indirect cycles. 2007-03-23 18:13:38 +00:00
bringert ccb76f5da0 Uncommented troublesome rules in srg0002 2007-03-23 18:10:21 +00:00
bringert 94813f9ffb Added test case which demonstrates a bug with implicit left recusion in SRG generation. 2007-03-23 18:09:22 +00:00
bringert 7ae2e01678 Remove removeIdenticalRules, since it would get rid of alternative parse results. 2007-03-20 22:09:17 +00:00
bringert 00e681aee8 Do the same initial transformations as for CFGs when generating FAs: remove cycles, identical rules and down top-down and bottom-up filtering. 2007-03-20 22:00:50 +00:00
bringert 50614d399a Do top-down and bottom-up filtering together to a fixed point. 2007-03-20 21:59:36 +00:00
bringert fa33c22e07 Moved code and comments around in TransformCFG. 2007-03-20 21:35:24 +00:00
bringert a8d356d599 Renamed removeEmptyCats to bottomUpFilter. 2007-03-20 21:15:59 +00:00
bringert fbe8282027 Removed dead export list. 2007-03-20 21:15:43 +00:00
bringert 2230a28e21 Removed fixed FIXMEs. 2007-03-20 21:15:26 +00:00
bringert 3dacf21a41 Use makeSimpleSRG everywhere and remove makeSRG. Reimplemented top-down filtering in terms of CFRules instead of SRG. Do top-down filtering in makeSimpleSRG. 2007-03-19 18:03:19 +00:00
bringert d9e0521c58 VoiceXML generation: the grammar file name should be based on the concrete syntax module name rather than the abstract. 2007-02-16 21:29:01 +00:00
bringert a24166ac25 Handle coercion functions (_) in CFG generation for SRG. 2007-01-29 12:30:49 +00:00
bringert 32d94e908c Removed CFConst constructor, since it was unused. 2007-01-29 12:21:15 +00:00
bringert fef4d56e71 Document CFTerm constructors. 2007-01-29 12:20:31 +00:00
bringert feef66421e No spaces after newlines in JavaScript pretty-printer. 2007-01-23 16:31:44 +00:00
bringert 02c5dbd04a Rename children to args in VoiceXML/SISR/JavaScript. 2007-01-22 20:48:14 +00:00
bringert abeb18fb20 Use _cat category as root in SRGS ABNF and JSGF. SRGS XML already did this. 2007-01-21 17:10:10 +00:00
bringert 71111e0a7c Nicer spacing and indentation in JavaScript pretty-printer. 2007-01-21 17:00:15 +00:00
bringert 169659c096 Get speechLanguage flag from both command-line and grammar. Reformat it to RFC3066 format (- instead of _) and use it in SRGS, VoiceXML and JSGF. 2007-01-21 16:33:44 +00:00
bringert b974ab06cd SRGS ABNF generation: semicolon after meta decls, no $NULL before initTag since the standard doesn't require it, and it crashes Opera, include tag-format declaration. 2007-01-21 16:01:36 +00:00
bringert 95d3fb5818 Added SRGS ABNF printers to HelpFile. 2007-01-21 15:12:34 +00:00
bringert 59a80fea3e Removed the srg value for pg -printer. Users should use pg -printer=srgs_abnf instead. 2007-01-21 15:10:49 +00:00
bringert d06cd9cf06 Removed the old srg printer, which produced SRGS ABNF. 2007-01-19 17:09:20 +00:00
bringert f61d7b6674 Don't print compile date in SRGS XML grammars. 2007-01-19 17:05:07 +00:00
bringert cae872e75a Added SRGS ABNF generation. 2007-01-19 17:04:32 +00:00
bringert aa16ddc912 VoiceXML: use block cond instead of field expr. For some reason the field expr doesn't work right in Opera. 2007-01-18 17:58:40 +00:00
bringert 6d19a584ea VoiceXML generation: cleaned out some old cruft. Use simpler names for variables and fields in forms. 2007-01-18 17:29:44 +00:00
bringert c3ec3eb465 Disable help and reprompt stuff in VoiceXML generation, to make nicer looking VoiceXML. They didn't really add much anyway, since there is no help generation yet. 2007-01-18 16:50:29 +00:00
bringert 159f6515f7 Sort rules in CFGM files by category and function. 2007-01-08 17:50:24 +00:00
bringert 998c20d098 Use ENBF to generate SRGS. 2007-01-07 23:58:41 +00:00
bringert 118468ce16 Added ETag constructor to GF.Data.XML.XML since not all tags can use the empty shorthand. 2007-01-07 23:57:29 +00:00
bringert a68944ade0 Added test/ directory, and a test grammar for the SRG EBNF generation. 2007-01-07 23:18:12 +00:00
bringert 1b8bc71b28 Fixed bug in SRG EBNF generation. Before it assumed that all variation came from variants, and overgenerated if this was not true. 2007-01-07 23:16:32 +00:00
bringert 090bb30466 Generate more compact JSGF by converting to ENBF. 2007-01-07 20:04:39 +00:00