Commit Graph

30 Commits

Author SHA1 Message Date
bjorn
2c2a8a51e3 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
4dd05f663b 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
af2dbf293a Updated JS editor to the latest version from Moises. 2008-09-09 09:32:32 +00:00
bjorn
7616c2ea23 removed some dead code from gflib.js 2008-08-19 14:08:02 +00:00
bjorn
c00007c49e Added a basic stylesheet for the js and ajax translators. 2008-08-15 11:46:36 +00:00
bjorn
c32be3e827 Change JS translation to replace existing output when a new translation is done. 2008-08-15 10:53:59 +00:00
bjorn
5939be16b8 Refactor js translator to be able to share some code with the ajax version. 2008-08-14 18:51:06 +00:00
bjorn
b296099441 Include concrete syntax flags in generated JS. 2008-08-13 12:08:11 +00:00
bjorn
538f173447 Added missing translator.js 2008-08-13 11:11:25 +00:00
bjorn
d43f3e7f5d Add language selectors to JavaScript translator. 2008-08-12 20:13:41 +00:00
bjorn
d836aac9cd First working JavaScript translator. 2008-08-12 19:35:27 +00:00
bjorn
03660714f1 Use Food grammar as the example grammar.js. 2008-08-12 19:35:05 +00:00
bringert
24e609189f Started working on a JavaScript translator. 2008-08-12 15:56:24 +00:00
bjorn
b043de5529 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
a0d29773a6 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
1eca0da869 Added gflib-xhtml-voice.js which contains some XHTML+Voice functions. 2007-04-21 21:46:48 +00:00
bringert
d8cf83d98f Added a simple unlexer in the JavaScript library. 2007-02-20 12:54:12 +00:00
bringert
979a54af35 Rename children to args in VoiceXML/SISR/JavaScript. 2007-01-22 20:48:14 +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
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
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
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
e8b8185e04 Generate JavaScript type annotator. Use lindef in JavaScript. 2006-12-21 00:01:45 +00:00
bringert
35c4302e48 Added dumpObject to gflib.js. 2006-12-15 21:00:21 +00:00
bringert
9e559bb7d5 Fixed Suffix-table bugs in gflib.js. 2006-12-15 19:31:24 +00:00
bringert
3cf9e25225 JavaScript: change Fun.toString to print(). Metavariables in abstract syntax are now Funs with name ? 2006-12-15 17:25:45 +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
5a5a05df95 Fixed warning sand extra spaces in linearization in gflib.js. 2006-12-06 14:11:01 +00:00
bringert
f46c848b7e Made generated JavaScript more object-oriented. Moved common JS stuff to lib/javascript/gflib.js 2006-12-06 13:52:24 +00:00