X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=rconv.js;h=f40a58905440905fe06efa3479634fa10231b98e;hp=8682db8db7955535cf7fd3379dde456ba4233838;hb=HEAD;hpb=fc99457e3ae452f1fb6471ac8fba75d4c73d0110 diff --git a/rconv.js b/rconv.js index 8682db8..f40a589 100644 --- a/rconv.js +++ b/rconv.js @@ -2,7 +2,9 @@ * * This is a test file to convert appbuilder style application code * into javascript structures. - * + * + * + * Needs to test a while directory convert to-><-from and compare.. * * */ @@ -32,7 +34,8 @@ var tr = new TokenReader( { keepComments : true, sepIdents : false, collapseWhite : true, - filename : args[0] + filename : args[0], + ignoreBadGrammer: true }); var str = File.read(args[0]) @@ -41,7 +44,8 @@ var toks = tr.tokenize(new TextStream(str)); var rf = new RooFile(toks); -//print(JSON.stringify(rf.tokens, null,4)); +//print(JSON.stringify(rf.tokens, null,4));Seed.quit(); + @@ -55,5 +59,5 @@ print(JSON.stringify(rf.cfg, null,4)); print("------------ was ------------------"); -print(File.read(args[0].replace(/\.js/,'.bjs'))); +print(File.read(args[0].replace(/\.js$/,'.bjs')));