Skip to content

Commit

Permalink
Change the language the compiler is registered under to match both th…
Browse files Browse the repository at this point in the history
…e HLL namespace and the filename.
  • Loading branch information
tene committed Dec 27, 2009
1 parent daa5600 commit 5e19f61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Compiler.pir
Expand Up @@ -83,7 +83,7 @@ Perl6::Compiler - Perl6 compiler
.local pmc p6meta, nqpproto
p6meta = get_hll_global ['Mu'], '$!P6META'
nqpproto = p6meta.'new_class'('Perl6::Compiler', 'parent'=>'HLL::Compiler')
nqpproto.'language'('Perl6')
nqpproto.'language'('perl6')
$P0 = get_hll_global ['Perl6'], 'Grammar'
nqpproto.'parsegrammar'($P0)
$P0 = get_hll_global ['Perl6'], 'Actions'
Expand Down Expand Up @@ -114,7 +114,7 @@ Perl6::Compiler - Perl6 compiler

.sub 'main' :main
.param pmc args_str
$P0 = compreg 'Perl6'
$P0 = compreg 'perl6'
$P1 = $P0.'command_line'(args_str, 'encoding'=>'utf8', 'transcode'=>'ascii iso-8859-1')
'!fire_phasers'('END')
exit 0
Expand Down
2 changes: 1 addition & 1 deletion src/cheats/eval.pm
Expand Up @@ -4,7 +4,7 @@ our sub eval(Str $code) {
interp = getinterp
caller = interp['context';1]
push_eh catch
$P0 = compreg 'Perl6'
$P0 = compreg 'perl6'
code = find_lex '$code'
result = $P0.'eval'(code, 'outer_ctx'=>caller)
exception = '!FAIL'()
Expand Down

0 comments on commit 5e19f61

Please sign in to comment.