Commit Graph

235 Commits

Author SHA1 Message Date
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 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
bringert f6a5ea8738 Updated reference to regular -> FA conversion. 2007-01-03 18:17:32 +00:00
bringert 159381e33a Use printname to make VoiceXML prompts. 2006-12-28 17:12:40 +00:00
bringert 95d4af1f2d Meta variables are now treated as functions with name ? in SISR, VoiceXML and JavaScript linearization. VoiceXML now returns the partial result when update() is false. 2006-12-21 16:48:46 +00:00
bringert 5455046dd8 Fixed (final?) two bugs in the SISR generation. 2006-12-20 22:13:56 +00:00
bringert 10ac9be0e1 More JSGF pretty-printing. 2006-12-20 21:50:16 +00:00
bringert 947d1cf564 JSGF pretty printing tweaks. 2006-12-20 21:43:41 +00:00
bringert 01bb00deea Use HughesPJ pretty printer to make JSGF output look nicer. 2006-12-20 21:39:25 +00:00
bringert a7f2010c6a Make smaller SISR code for tokens. 2006-12-20 20:22:08 +00:00
bringert 8424b23765 Removed tracing from PrJSGF. 2006-12-20 20:14:46 +00:00
bringert cb70ffadaa Use LCLR algorithm for eliminating left-recursion, with lambda terms in SISR for getting trees right. 2006-12-20 20:10:15 +00:00
bringert 5b8680b8fd Added still unused implementation of Moore's LCLR algorithm for left recursion elimination. Fixed top category generation for SRG (included LR-elimination-added categories before). 2006-12-17 19:18:28 +00:00
bringert 3797fc35c5 Use [] in JSGF printing. 2006-12-17 18:16:20 +00:00
bringert 743e89fa9b Some clean-up in GF/Speech/TransformCFG.hs 2006-12-17 13:29:12 +00:00
bringert 2b326f8041 Many fixes to JSGF format (never tested before). Implemented JSGF+SISR. Left recursion removal destroys SISR, must be fixed. 2006-12-17 13:17:17 +00:00
bringert 6d819b2c84 VoiceXML: add _cat and _field to category names, to avoid clashing with javascript built-ins. removed debugging stuff to make maintenance easier. SRGS: changed cate and field names to match the VoiceXML change. 2006-12-16 14:19:04 +00:00
bringert 160c6354c0 Towards smaller SRGs when lots of variants are used. 2006-12-15 16:09:58 +00:00
bringert 0ef8dced52 Include update function in generated VoiceXML. Generated linearization javaScript now uses the same abstract syntax representation as SISR. 2006-12-15 16:08:39 +00:00
bringert 9e3500024b Use ebnf srg generation in PrSRGS. 2006-12-12 14:01:42 +00:00
bringert ebb3382418 Moved profile stuff to GF.Speech.SRG, to allow other SRG formats to include SISR. 2006-12-12 11:59:12 +00:00
bringert 694f644fe5 SRGS generation: don't include debug script stuff if debugging is disabled. Place category comments better. 2006-12-12 10:37:45 +00:00
bringert b859fb7a7a SRGS+SISR: put tags after items. 2006-12-11 19:41:03 +00:00
bringert 5c65037d8c VoiceXML: set xml:lang (value is still fake though) 2006-12-11 16:08:15 +00:00
bringert 321169c3b4 VoiceXML: print without debugging stuff by default. 2006-12-11 15:20:26 +00:00
bringert 4ab7c6774b VoiceXML: don't use srcexpr in subdialogs, since Opera does not support that. Also makes fewer subdialogs nows. 2006-12-11 14:47:00 +00:00
bringert 18cfffff90 VoiceXML: don't use subdialog srcexpr for statically know subdialogs. 2006-12-10 23:32:30 +00:00
bringert b664973cae Reinstate SISR field name for top-level categories. The VoiceXML generation relies on it. 2006-12-10 23:31:43 +00:00
bringert 8b94297b85 Added tag-format attribute to SRGS XML when using SISR. 2006-12-10 20:53:51 +00:00
bringert 0ae6351754 Use public category with original name as SRGS start cat. 2006-12-08 20:10:28 +00:00
bringert 46ca2e7b1a Changed SRGS SISR printing to be closer to the current working draft standard, as supported by the WebSphere implementation (and thus Opera). 2006-12-08 19:53:44 +00:00
bringert bb9ec5c21a Removed extra comma in import list of src/GF/Speech/Relation.hs. This prevented compilation on current ghc HEAD. 2006-09-13 16:46:07 +00:00
bringert d71e8b65d8 Disable special treatment of lists in SRGS+SISR generation, since OptimTalk can't handle it. 2006-05-31 19:41:05 +00:00
bringert 817a6a488b VoiceXML generation: use cond attribute with blocks, instead of having ifs inside. Recommended by OptimSys support. 2006-04-27 09:30:59 +00:00
bringert 3b3570201a Added debugging flag to generated VoiceXML. 2006-04-20 09:46:54 +00:00
bringert 9b38240354 Use quest_Cat to generate questions in the VoiceXML printer. 2006-04-19 09:03:19 +00:00
bringert 4d3dc4ac54 Look at both command-line and grammar startcat falgs in pg commands. 2006-04-18 12:42:20 +00:00
bringert dbd9a25162 Fixed left recursion removal to not create cyclic rules. 2006-04-13 15:07:17 +00:00
bringert c47da3d351 Removed cycles when building SRGs, to avoid getting left-recursive grammars. 2006-04-13 14:47:37 +00:00
bringert 26b61d82ee generate unique new category names when removing left recursion from cfgs. 2006-04-13 14:29:27 +00:00
bringert 256b593ae5 Fixed bug in SRG top-down filtering where the start category would be removed if it wasn't referenced by itself. 2006-04-13 14:18:13 +00:00
bringert 4609965d71 Added top-down filtering to the GSL printer. 2006-04-13 13:33:35 +00:00
bringert 0fef8d5675 The SLF removeTrivialEmptyNodes optimization could orphan the final node. Fixed this by not bypassing final nodes. 2006-04-12 23:22:35 +00:00