Skip to content

Commit

Permalink
Fix --ast mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Jul 25, 2010
1 parent 90bb87e commit efc2334
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CompilerDriver.pm
Expand Up @@ -47,9 +47,9 @@ sub compile {
actions => 'Niecza::Actions')->{_ast};

if ($args{ast}) {
delete $a->mainline->{outer};
delete $a->{setting};
print STDOUT YAML::XS::Dump($a);
delete $ast->mainline->{outer};
delete $ast->{setting};
print STDOUT YAML::XS::Dump($ast);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion niecza_eval
Expand Up @@ -46,7 +46,7 @@ if ($excl > 1 || $module && !@ARGV) {
sub run {
compile(main => !$module, csonly => $csonly, ast => $ast,
lang => $lang, @_);
system 'mono --debug=casts MAIN.exe' if !$module && !$csonly;
system 'mono --debug=casts MAIN.exe' if !$module && !$csonly && !$ast;
}

if (@ARGV) {
Expand Down

0 comments on commit efc2334

Please sign in to comment.