3 * This is a test file to convert appbuilder style application code
4 * into javascript structures.
7 * Needs to test a while directory convert to-><-from and compare..
15 var JsParser = imports.JsParser.JsParser;
16 var TokenReader = imports.JSDOC.TokenReader.TokenReader;
17 var TextStream = imports.JSDOC.TextStream.TextStream;
19 var File = imports.File.File;
21 var GLib = imports.gi.GLib;
25 var args = Array.prototype.slice.call(Seed.argv);
29 //print(JSON.stringify(args, null,4));
33 if (File.isFile(args[0])) {
36 throw "argument is not file";
41 function bjstest(fn) {
43 // does it have a .bjs file..
44 var bjs = fn.replace(/\.js$/, '.bjs');
45 if (!bjs.match(/\.bjs$/)) {
46 throw "not a bjs file"
51 // now try and render it back to javascript.
52 var rclass = imports.JsRender.Roo.Roo;
54 var render = new rclass({
57 render.loadItems(function() {
58 print(render.toSource());
62 //print(JSON.stringify(rf.cfg, null,4));