rconv.js
[gnome.introspection-doc-generator] / rconv.js
1 /**
2  *
3  * This is a test file to convert appbuilder style application code
4  *  into javascript structures.
5  * 
6  *
7  *
8  */
9
10 var RooFile = imports.JSDOC.RooFile.RooFile;
11
12
13
14
15
16 var args = Array.prototype.slice.call(Seed.argv);
17 print(JSON.stringify(args, null,4));
18 Seed.quit();
19
20
21
22 var tr = new  TokenReader(  { 
23     keepDocs :true, 
24     keepWhite : true,  
25     keepComments : true, 
26     sepIdents : true,
27     collapseWhite : false,
28     filename : fn
29 });
30
31
32
33 var toks = tr.tokenize(new TextStream(str));  
34
35 var rf = new RooFile(toks);
36
37 rf.parse();
38
39 print(JSON.stringify(rf.cfg, null,4));