+ /* pass 1 */
+ as3_pass = 1;
+ avm2_set_in(fi);
+ initialize_file(filename);
+ avm2_parse();
+ avm2_lex_destroy();
+ finish_file();
+
+ /* pass 2 */
+ // TODO: this should re-use tokens!
+ enter_file(filename, 0);
+ as3_pass = 2;
+ fseek(fi, 0, SEEK_SET);