Skip to content

Commit

Permalink
Add 'file' annotation to generate code.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed May 15, 2009
1 parent a1055ac commit e4f7b12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/PARROT_REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
38768
38795
2 changes: 2 additions & 0 deletions src/parser/actions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ method TOP($/) {
}

$main.hll($?RAKUDO_HLL);
my $?FILE := Q:PIR { %r = find_caller_lex '$?FILES' };
$main.unshift(PAST::Op.new(:inline(".annotate 'file', '" ~ $?FILE ~ "'")));
make $main;
}

Expand Down

0 comments on commit e4f7b12

Please sign in to comment.