|
@@ -450,7 +450,6 @@ try
|
|
let pre_compilation = ref [] in
|
|
let pre_compilation = ref [] in
|
|
let interp = ref false in
|
|
let interp = ref false in
|
|
let swf_version = ref false in
|
|
let swf_version = ref false in
|
|
- let evals = ref [] in
|
|
|
|
Common.define_value com Define.HaxeVer (Printf.sprintf "%.3f" (float_of_int Globals.version /. 1000.));
|
|
Common.define_value com Define.HaxeVer (Printf.sprintf "%.3f" (float_of_int Globals.version /. 1000.));
|
|
Common.raw_define com "haxe3";
|
|
Common.raw_define com "haxe3";
|
|
Common.define_value com Define.Dce "std";
|
|
Common.define_value com Define.Dce "std";
|
|
@@ -681,10 +680,6 @@ try
|
|
force_typing := true;
|
|
force_typing := true;
|
|
config_macros := e :: !config_macros
|
|
config_macros := e :: !config_macros
|
|
)," : call the given macro before typing anything else");
|
|
)," : call the given macro before typing anything else");
|
|
- ("--eval", Arg.String (fun s ->
|
|
|
|
- force_typing := true;
|
|
|
|
- evals := s :: !evals;
|
|
|
|
- ), " : evaluates argument as Haxe module code");
|
|
|
|
("--wait", Arg.String (fun hp ->
|
|
("--wait", Arg.String (fun hp ->
|
|
let accept = match hp with
|
|
let accept = match hp with
|
|
| "stdio" ->
|
|
| "stdio" ->
|
|
@@ -788,7 +783,6 @@ try
|
|
Typecore.type_expr_ref := (fun ctx e with_type -> Typer.type_expr ctx e with_type);
|
|
Typecore.type_expr_ref := (fun ctx e with_type -> Typer.type_expr ctx e with_type);
|
|
let tctx = Typer.create com in
|
|
let tctx = Typer.create com in
|
|
List.iter (MacroContext.call_init_macro tctx) (List.rev !config_macros);
|
|
List.iter (MacroContext.call_init_macro tctx) (List.rev !config_macros);
|
|
- List.iter (Typer.eval tctx) !evals;
|
|
|
|
List.iter (fun cpath -> ignore(tctx.Typecore.g.Typecore.do_load_module tctx cpath null_pos)) (List.rev !classes);
|
|
List.iter (fun cpath -> ignore(tctx.Typecore.g.Typecore.do_load_module tctx cpath null_pos)) (List.rev !classes);
|
|
Typer.finalize tctx;
|
|
Typer.finalize tctx;
|
|
t();
|
|
t();
|