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..
12 var RooFile = imports.JSDOC.RooFile.RooFile;
13 var TokenReader = imports.JSDOC.TokenReader.TokenReader;
14 var TextStream = imports.JSDOC.TextStream.TextStream;
16 var File = imports.File.File;
22 var args = Array.prototype.slice.call(Seed.argv);
26 //print(JSON.stringify(args, null,4));
31 var tr = new TokenReader( {
38 ignoreBadGrammer: true
41 var str = File.read(args[0])
43 var toks = tr.tokenize(new TextStream(str));
46 var rf = new RooFile(toks);
47 //print(JSON.stringify(rf.tokens, null,4));Seed.quit();
54 print("------------ in ------------------");
56 print("------------ out ------------------");
58 print(JSON.stringify(rf.cfg, null,4));
60 print("------------ was ------------------");
62 print(File.read(args[0].replace(/\.js$/,'.bjs')));