JSDOC/TokenReader.js
[gnome.introspection-doc-generator] / JSDOC / GtkFile.js
1 //<script type="text/javscript">
2
3 XObject = imports.XObject.XObject;
4
5
6  
7 console = imports.console.console; 
8
9 // make sure parent is loaded..
10 RooFile = imports.RooFile.RooFile;
11
12 /**
13  * 
14  * this takes our collased file, and turns it into the config array..
15  * 
16  * 
17  * 
18  * 
19  * 
20  * 
21  */
22
23
24
25 GtkFile  = XObject.define(
26     function (ar)
27     {
28         GtkFile.superclass.constructor.call(this, ar);
29        // console.log("STARTING OUTPUT");
30         
31         
32
33     }, 
34     RooFile, 
35     {
36         
37         cfg : { },
38         giImports : [],
39         imports : { }, 
40         parse: function()
41         {
42             // parse imports...
43             
44             this.parseImports();
45             // function create() { return;
46                 
47             var pos = this.lookFor( 'function');
48             
49             
50             // standard create format.
51             
52             if (pos  > -1 && this.tokens[pos+1].data == 'create') {
53                 var tree = this.tokens[pos+3].items[0][1].props;
54                 this.cfg= this.parseProps(tree);
55                 return;
56             }
57             print("invalid file format");
58             Seed.quit();
59             
60             //GtkFile.superclass.parse.call(this);
61             
62             
63             
64             
65             
66              
67             
68             
69                 
70         },
71         
72         
73 });
74