Commit Graph

32 Commits

Author SHA1 Message Date
aarne
13e754b76b idea page 2009-03-11 16:54:16 +00:00
aarne
dc2a6c6ed9 tutorial complete with server and js 2008-11-11 10:28:32 +00:00
bjorn
e5871c7c1d Changed gflib.js to handle linearization of literals. This duplicates some functionality from gfjseditor.js, but is required for the translator to be able to linearize literals. The editor should be fixed to remove the special code for literals, but it is a bit to much for me to understand right now. 2008-10-29 09:33:58 +00:00
bjorn
8857b7c11c JS parser: remove empty tokens after lexing. This fixes a problem where a string with leading space couldn't be parsed. 2008-10-29 08:39:23 +00:00
bjorn
2064371ff2 Updated JS editor to the latest version from Moises. 2008-09-09 09:32:32 +00:00
bjorn
a85b2eff8f removed some dead code from gflib.js 2008-08-19 14:08:02 +00:00
bjorn
9732b47d7e Added a basic stylesheet for the js and ajax translators. 2008-08-15 11:46:36 +00:00
bjorn
8a022d65b3 Change JS translation to replace existing output when a new translation is done. 2008-08-15 10:53:59 +00:00
bjorn
3b735511f8 Refactor js translator to be able to share some code with the ajax version. 2008-08-14 18:51:06 +00:00
bjorn
1350ab1deb Include concrete syntax flags in generated JS. 2008-08-13 12:08:11 +00:00
bjorn
31c29fd7f8 Added missing translator.js 2008-08-13 11:11:25 +00:00
bjorn
932c7484d6 Add language selectors to JavaScript translator. 2008-08-12 20:13:41 +00:00
bjorn
aec2c51d32 First working JavaScript translator. 2008-08-12 19:35:27 +00:00
bjorn
612633e975 Use Food grammar as the example grammar.js. 2008-08-12 19:35:05 +00:00
bringert
12439451a7 Started working on a JavaScript translator. 2008-08-12 15:56:24 +00:00
bjorn
73454ab9df Handled undefined children in the gflib.js Fun.show() function.
This shouldn't really happen, but if it does, debugging is much easier.
2008-06-17 11:06:46 +00:00
bjorn
4411392d15 Added all the syntax editor files from Moises.
This is the version that he sent to me on Fri, Apr 11, 2008 at 2:42 PM. I'm not sure if this is the latest version.
2008-06-16 17:42:20 +00:00
bringert
d835794a7d Added gflib-xhtml-voice.js which contains some XHTML+Voice functions. 2007-04-21 21:46:48 +00:00
bringert
9c2926acd6 Added a simple unlexer in the JavaScript library. 2007-02-20 12:54:12 +00:00
bringert
41136df788 Rename children to args in VoiceXML/SISR/JavaScript. 2007-01-22 20:48:14 +00:00
bringert
d021b080ec 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
82ae5dc20f 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
ef72464ed8 JavaScript lib: fixed bug where an integer was returned by print(). 2007-01-04 22:27:38 +00:00
bringert
c95c1d9867 JavaScript lib: allow children as arguments to Fun. 2007-01-04 22:01:38 +00:00
bringert
8330e3f0bd 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
4eb986aa7a Generate JavaScript type annotator. Use lindef in JavaScript. 2006-12-21 00:01:45 +00:00
bringert
8219321d3c Added dumpObject to gflib.js. 2006-12-15 21:00:21 +00:00
bringert
c401119555 Fixed Suffix-table bugs in gflib.js. 2006-12-15 19:31:24 +00:00
bringert
f8f840713d JavaScript: change Fun.toString to print(). Metavariables in abstract syntax are now Funs with name ? 2006-12-15 17:25:45 +00:00
bringert
407be557bb 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
55beb4b4f5 Fixed warning sand extra spaces in linearization in gflib.js. 2006-12-06 14:11:01 +00:00
bringert
d72c319147 Made generated JavaScript more object-oriented. Moved common JS stuff to lib/javascript/gflib.js 2006-12-06 13:52:24 +00:00