Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Switch rakudo to register itself as a compiler for 'perl6' (lowercase)
  • Loading branch information
tene committed May 18, 2009
1 parent f77ad8a commit 1639d85
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions perl6.pir
Expand Up @@ -58,7 +58,7 @@ Creates the Perl 6 compiler by subclassing a C<PCT::HLLCompiler> object.

load_bytecode 'config.pbc'

perl6.'language'('Perl6')
perl6.'language'('perl6')
$P0 = get_hll_namespace ['Perl6';'Grammar']
perl6.'parsegrammar'($P0)
$P0 = get_hll_namespace ['Perl6';'Grammar';'Actions']
Expand Down Expand Up @@ -350,7 +350,7 @@ to the Perl 6 compiler.
exit 0
not_harness:

$P0 = compreg 'Perl6'
$P0 = compreg 'perl6'
$P1 = $P0.'command_line'(args_str, 'encoding'=>'utf8', 'transcode'=>'ascii')

.include 'iterator.pasm'
Expand Down
2 changes: 1 addition & 1 deletion src/builtins/control.pir
Expand Up @@ -369,7 +369,7 @@ on error.
goto got_lang
no_lang:
push_eh catch
compiler = compreg 'Perl6'
compiler = compreg 'perl6'
got_lang:
invokable = compiler.'compile'(code)

Expand Down
6 changes: 3 additions & 3 deletions src/builtins/eval.pir
Expand Up @@ -34,7 +34,7 @@ itself can be found in src/builtins/control.pir.
lang = options['lang']
if lang == 'Parrot' goto lang_parrot
if lang goto lang_compile
lang = 'Perl6'
lang = 'perl6'
lang_compile:
.local pmc compiler
compiler = compreg lang
Expand Down Expand Up @@ -129,7 +129,7 @@ itself can be found in src/builtins/control.pir.
$P0 = new 'List'
set_hll_global ['Perl6';'Grammar';'Actions'], '@?BLOCK', $P0
inc_hash[name] = realfilename
result = 'evalfile'(realfilename, 'lang'=>'Perl6')
result = 'evalfile'(realfilename, 'lang'=>'perl6')
set_hll_global ['Perl6';'Grammar';'Actions'], '@?NS', outer_ns_chain
set_hll_global ['Perl6';'Grammar';'Actions'], '@?BLOCK', outer_blocks

Expand Down Expand Up @@ -158,7 +158,7 @@ itself can be found in src/builtins/control.pir.
# See if we've had a namespace name passed in.
.local pmc import_ns
.local pmc compiler_obj
compiler_obj = compreg 'Perl6'
compiler_obj = compreg 'perl6'
$P0 = options['import_to']
if null $P0 goto use_caller_ns
$S0 = $P0
Expand Down
6 changes: 3 additions & 3 deletions src/builtins/guts.pir
Expand Up @@ -744,7 +744,7 @@ Add a trait with the given C<type> and C<name> to C<metaclass>.

is:
## get the (parrot)class object associated with name
$P0 = compreg 'Perl6'
$P0 = compreg 'perl6'
$P0 = $P0.'parse_name'(name)
$S0 = pop $P0
$P0 = get_hll_global $P0, $S0
Expand All @@ -769,7 +769,7 @@ Add a trait with the given C<type> and C<name> to C<metaclass>.

does:
## get the Role object for the role to be composed
$P0 = compreg 'Perl6'
$P0 = compreg 'perl6'
$P0 = $P0.'parse_name'(name)
$S0 = pop $P0
$P0 = get_hll_global $P0, $S0
Expand Down Expand Up @@ -971,7 +971,7 @@ and C<type>.
.param pmc var
.param string name
.param pmc arg :slurpy
$P0 = compreg 'Perl6'
$P0 = compreg 'perl6'
$P0 = $P0.'parse_name'(name)
$S0 = pop $P0
$P0 = get_hll_global $P0, $S0
Expand Down
2 changes: 1 addition & 1 deletion src/parser/actions.pm
Expand Up @@ -47,7 +47,7 @@ method TOP($/) {
else {
$main := PAST::Block.new( :pirflags(':main') );
$main.loadinit().push(
PAST::Op.new( :inline('$P0 = compreg "Perl6"',
PAST::Op.new( :inline('$P0 = compreg "perl6"',
'unless null $P0 goto have_perl6',
'load_bytecode "perl6.pbc"',
'have_perl6:')
Expand Down
2 changes: 1 addition & 1 deletion src/parser/methods.pir
Expand Up @@ -28,7 +28,7 @@ Registers a type in the namespace.
# Parse name.
.local pmc ns
.local string short_name
$P0 = compreg 'Perl6'
$P0 = compreg 'perl6'
ns = $P0.'parse_name'(name)
short_name = pop ns

Expand Down

0 comments on commit 1639d85

Please sign in to comment.