projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JSDOC/ScopeParser.vala
[gnome.introspection-doc-generator]
/
rconv.js
diff --git
a/rconv.js
b/rconv.js
index
9454c0a
..
f40a589
100644
(file)
--- a/
rconv.js
+++ b/
rconv.js
@@
-2,7
+2,9
@@
*
* This is a test file to convert appbuilder style application code
* into javascript structures.
*
* 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,
keepComments : true,
sepIdents : false,
collapseWhite : true,
- filename : args[0]
+ filename : args[0],
+ ignoreBadGrammer: true
});
var str = File.read(args[0])
});
var str = File.read(args[0])
@@
-41,12
+44,20
@@
var toks = tr.tokenize(new TextStream(str));
var rf = new RooFile(toks);
var rf = new RooFile(toks);
-//print(JSON.stringify(rf.tokens, null,4));
+//print(JSON.stringify(rf.tokens, null,4));Seed.quit();
+
+
+
+
rf.parse();
rf.parse();
+print("------------ in ------------------");
+print(str);
+print("------------ out ------------------");
+
print(JSON.stringify(rf.cfg, null,4));
print("------------ was ------------------");
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')));