Commit Graph
100 Commits
Author SHA1 Message Date
bringert a437eccd64 Updated gfdoc. 2007-04-21 18:30:43 +00:00
bringert 61368047cc Added mkCl : NP -> V -> Cl and mkCl : NP -> V2 -> NP -> Cl. 2007-04-21 18:30:12 +00:00
bringert aab4187aa8 Fixed use of -unlexer in EmbedAPI. Before, EmbedAPI.linearize ignored the flags in the grammar. 2007-04-21 16:20:02 +00:00
bringert 7f76f013c9 Updated gfdoc for resource API 2007-04-21 15:52:16 +00:00
bringert b3b7e9a8f7 Added mkText : Cl -> Text 2007-04-21 14:57:17 +00:00
bringert 531119dad5 Updated gfdoc. 2007-04-21 11:02:52 +00:00
bringert c172625af1 Added mkCN variants that take A. 2007-04-21 10:44:02 +00:00
bringert 9d092898cd Added some mkCl variants with adjective predication. 2007-04-21 10:32:13 +00:00
bringert f717bc4553 Updated gfdoc 2007-04-21 10:24:36 +00:00
bringert 69ac75b0a8 Constructors: added mkCl : NP -> A -> Cl 2007-04-21 10:23:32 +00:00
bringert 0b03eda417 Updated gfdoc. 2007-04-21 10:03:22 +00:00
bringert 1bcf531b14 Constructors: added more variants of mkText. 2007-04-21 10:02:49 +00:00
bringert 93f7a3190c Constructors: added more variants of mkS : ... -> Cl -> S 2007-04-21 09:52:09 +00:00
bringert ea0500e61d Updated resource gfdoc. 2007-04-21 09:39:36 +00:00
bringert 6633024433 Added overloaded negation to Combinators. 2007-04-21 09:38:52 +00:00
bringert eedd5a5ad0 Regenerated gfdoc 2007-04-20 22:56:11 +00:00
bringert aa8dbcea8a Added mkText : Phr -> Text 2007-04-20 22:55:55 +00:00
bringert 59ccc22409 Added some more versions of mkQS and mkCl. 2007-04-20 22:31:10 +00:00
bringert ba789d6fe7 Added missing doc/gfdoc/Lexicon.html 2007-04-20 21:53:46 +00:00
bringert 8150faa640 Fixed link to Symbolic docs. 2007-04-19 21:35:37 +00:00
bringert f67c379f4a Updated gfdoc for resource-1.0 2007-04-19 21:27:01 +00:00
bringert afa4681458 Added some determiners to Constructors. 2007-04-19 21:26:19 +00:00
bringert a609e26185 Updated resource api docs 2007-04-19 21:08:28 +00:00
bringert 90393455a7 Added versions of mkCn that take N instead of CN arguments. 2007-04-19 21:07:37 +00:00
bringert 91c7b22e8c Nicer formatting of generated GSL. 2007-03-27 10:21:16 +00:00
bringert 896233c4a9 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 651697982b Use EBNF compaction for GSL. 2007-03-26 14:51:24 +00:00
bringert 94bdd1fb23 Fixed SISR bug. 2007-03-26 13:12:04 +00:00
bringert b1919ca62f Added directly cyclic SRG test case. 2007-03-25 16:44:30 +00:00
bringert f9ad1dfe2d Give SRG test cases human-readable names. 2007-03-25 16:42:52 +00:00
bringert 2091df47fe commented LC_LR modification 2007-03-25 16:34:53 +00:00
bringert 4905996816 Also remove indirectly cyclic productions. 2007-03-25 16:34:35 +00:00
bringert 935b60f977 Removed srg0006, it was a duplicate of srg0002 2007-03-25 16:34:11 +00:00
bringert 4a604934e9 Added srg0006: A grammar with a cycle caused by an empty production. 2007-03-25 16:11:51 +00:00
bringert d35727631c Comments only. 2007-03-25 11:26:03 +00:00
bringert 8a435873f2 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 99af757b06 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 0058f6281f Better debugging output when SRG generation crashes because of a missing category. 2007-03-24 17:26:21 +00:00
bringert 62854384e6 Just renaming in srg0005 2007-03-24 17:25:07 +00:00
bringert 5c5f63a48d Shrunk srg0005 2007-03-24 15:48:29 +00:00
bringert 2d713e78a5 More srg test cases. 2007-03-24 15:34:33 +00:00
bringert 7095f7aa19 Added srg0004: a simple left-recursive grammar. 2007-03-24 15:13:18 +00:00
bringert cd6d10d90b Added srg0003: test case for indirect cycles. 2007-03-23 18:13:38 +00:00
bringert 10dbc3c652 Uncommented troublesome rules in srg0002 2007-03-23 18:10:21 +00:00
bringert 289ee4869e Added test case which demonstrates a bug with implicit left recusion in SRG generation. 2007-03-23 18:09:22 +00:00
bringert 082b3575f8 Updated resource api doc 2007-03-22 14:38:32 +00:00
bringert 6b2a890410 Added mkDet : Digit -> Det 2007-03-22 14:36:52 +00:00
bringert 85cf5ecf21 Regenerated resource api docs. 2007-03-22 14:30:53 +00:00
bringert 1a37e4f0fe Overaloed resource API: added mod combinators for Det -> N -> NP and Det -> CN -> NP 2007-03-22 14:29:45 +00:00
bringert 0eac3f6b58 Remove removeIdenticalRules, since it would get rid of alternative parse results. 2007-03-20 22:09:17 +00:00
bringert fe73354cc6 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 4d369e096f Do top-down and bottom-up filtering together to a fixed point. 2007-03-20 21:59:36 +00:00
bringert c2dd74f33e Moved code and comments around in TransformCFG. 2007-03-20 21:35:24 +00:00
bringert a473281c65 Renamed removeEmptyCats to bottomUpFilter. 2007-03-20 21:15:59 +00:00
bringert e31ccc4567 Removed dead export list. 2007-03-20 21:15:43 +00:00
bringert 0300c35d87 Removed fixed FIXMEs. 2007-03-20 21:15:26 +00:00
bringert 205f79efc6 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 d8cf83d98f Added a simple unlexer in the JavaScript library. 2007-02-20 12:54:12 +00:00
bringert 6c3870c96b 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 6bed1fed96 Handle coercion functions (_) in CFG generation for SRG. 2007-01-29 12:30:49 +00:00
bringert 301d268141 Removed CFConst constructor, since it was unused. 2007-01-29 12:21:15 +00:00
bringert f56b617f5a Document CFTerm constructors. 2007-01-29 12:20:31 +00:00
bringert 780d0b2c42 No spaces after newlines in JavaScript pretty-printer. 2007-01-23 16:31:44 +00:00
bringert 979a54af35 Rename children to args in VoiceXML/SISR/JavaScript. 2007-01-22 20:48:14 +00:00
bringert b768aa780f Use _cat category as root in SRGS ABNF and JSGF. SRGS XML already did this. 2007-01-21 17:10:10 +00:00
bringert a9dfb0e477 Nicer spacing and indentation in JavaScript pretty-printer. 2007-01-21 17:00:15 +00:00
bringert 99d774c2f5 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 2fcafc2022 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 d40e559e04 Added SRGS ABNF printers to HelpFile. 2007-01-21 15:12:34 +00:00
bringert 855cc16112 Removed the srg value for pg -printer. Users should use pg -printer=srgs_abnf instead. 2007-01-21 15:10:49 +00:00
bringert 242f3c751e Removed the old srg printer, which produced SRGS ABNF. 2007-01-19 17:09:20 +00:00
bringert a8ffca6ff0 Don't print compile date in SRGS XML grammars. 2007-01-19 17:05:07 +00:00
bringert 2c13c5089a Added SRGS ABNF generation. 2007-01-19 17:04:32 +00:00
bringert b9bd1ac68d 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 2b369e12aa 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 028415ebd8 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 312e477169 Sort rules in CFGM files by category and function. 2007-01-08 17:50:24 +00:00
bringert 3e9d2b4a2f Use ENBF to generate SRGS. 2007-01-07 23:58:41 +00:00
bringert a4aec2da49 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 ac3d790e14 Added test/ directory, and a test grammar for the SRG EBNF generation. 2007-01-07 23:18:12 +00:00
bringert 1f3cb2546a 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 476080e6db Generate more compact JSGF by converting to ENBF. 2007-01-07 20:04:39 +00:00
bringert bb7eb9f78d JavaScript: fixed bug when linearization overwrote the children of the abstract syntax node, since getChildren now returned the actual array of children. 2007-01-07 18:31:48 +00:00
bringert 3220f75dcb VoiceXML generation: catch up with children array in SISR. 2007-01-07 18:31:03 +00:00
bringert 8d29a4241b Added unused simple VoiceXML generation. It won't work in Opera because of the lack of subdialog srcexpr attribute support. 2007-01-07 17:19:58 +00:00
bringert d549ce6256 JavaSscript and SISR abstract syntax now uses an array for the node children, instead of cheesy argN fields. 2007-01-07 17:18:50 +00:00
bringert 133491fd8b SISR code now type annotates meta variables directly in grammar, to avoid a separate type annotation step. 2007-01-05 17:34:44 +00:00
bringert d776adc1f5 Use the GFCC type from DataGFCC when building VoiceXML. 2007-01-05 17:05:31 +00:00
bringert d45c1923cf Use GFCC to build VoiceXML. 2007-01-05 16:46:50 +00:00
bringert 1ced5d0cb5 VoiceXML printer no takes Options and StateGrammar, like SRG printers do. 2007-01-05 15:47:53 +00:00
bringert 028f2e108e Changed all SRG printer to take Options and StateGrammar arguments. This makes Custom a lot cleaner. 2007-01-05 15:38:47 +00:00
bringert 9af5b77102 Change input to the different SRG printers to be StateGrammar instead of CGrammar. This to allow looking at the types in SISR, and to reduce the number of argument passed from Custom. 2007-01-05 14:34:20 +00:00
bringert 0867fbb389 Commented out callbacks stuff in VoiceXML generation. It was not the right thing to have. 2007-01-04 22:40:06 +00:00
bringert a47a95b4e2 JavaScript lib: fixed bug where an integer was returned by print(). 2007-01-04 22:27:38 +00:00
bringert 988772ba37 JavaScript lib: allow children as arguments to Fun. 2007-01-04 22:01:38 +00:00
bringert 1ded2878f2 SISR: top categories do not need the Cat_field field. 2007-01-04 20:55:13 +00:00
bringert 73b0f72d2b SRG: when making top-level categories, handle value categories introduced by -conversion=finite. 2007-01-03 23:14:10 +00:00
bringert 613c1527e9 SISR: constants from conversion=finite now produce abstract syntax nodes instead of strings. 2007-01-03 22:57:20 +00:00
bringert 3e7b707c69 Updated another reference to "Regular approximation of CFLs: a grammatical view" 2007-01-03 18:28:25 +00:00
bringert 454a52d9a2 VoiceXML: when checking the callbacks, use typeof to avoid errors with Opera 9.10. 2007-01-03 18:17:52 +00:00