Vala.CodeContext context;
- public ValaSource(JsRender.Gtk file) {
+ public ValaSource(JsRender.JsRender file) {
base();
// init context:
context,
Vala.SourceFileType.SOURCE,
"~~~~~testfile.vala",
- file.toSource()
+ NodeToVala.mungeFile(file)
);
//context.add_source_file (testcode);
parser.parse (context);
//gir_parser.parse (context);
if (context.report.get_errors () > 0) {
- print("got errors");
+ print("parse got errors");
Vala.CodeContext.pop (context);
return;
}
//
}
+}
int main (string[] args) {
- var a = new TreeBuilder();
+ var a = new ValaSource(file);
a.create_valac_tree();
return 0;
}