- if(argn>2 && !strcmp(argv[2], "-lex")) {
- test_lexer();
- return 0;
- }
- avm2_parse();
- void*code = finalize_state();
+ //extern int avm2_debug;
+ //avm2_debug = 1;
+
+ as3_add_include_dir(getcwd(buf, 512));
+ as3_parse_file(filename);
+ void*code = as3_getcode();