On Thu Dec 29 15:16:20 2011, cognominal wrote: > Trying to experiment with the compiler chain from the language (either > nqp or perl6) is impossible for the layman. > All my attempts have been failures and documenting them would be > futile at this point. > Too bad, because I think playing with it would be a good way to get a > feel of the internals which is a prerequisite > to become a contributor. > > A simple example. > > perl6 -e 'use Perl6::Compiler;' > Could not find Perl6::Compiler in any of: lib, > /Users/stephanepayrard/.perl6/lib, > /Users/stephanepayrard/git/rakudo/install/lib/parrot/3.11.0- > devel/languages/perl6/lib, > . > � in load_module at src/Perl6/ModuleLoader.pm:99 > � in load_module at src/Perl6/World.pm:172 > � in <anon> at src/Perl6/Grammar.pm:712 > � in <anon> at src/Perl6/Grammar.pm:711 > � in statement_control:sym<use> at src/Perl6/Grammar.pm:709 > � in statement_control at src/Perl6/Grammar.pm:588 > � in statement at src/Perl6/Grammar.pm:503 > � in statementlist at src/Perl6/Grammar.pm:490 > � in comp_unit at src/Perl6/Grammar.pm:458 > � in TOP at src/Perl6/Grammar.pm:36 > $ perl6 -e 'BEGIN { �@*INC.push: <blib> }; �use Perl6::Compiler;' > get_attr_str() not implemented in class 'Undef' > � in load_module at src/Perl6/World.pm:186 > � in <anon> at src/Perl6/Grammar.pm:712 > � in <anon> at src/Perl6/Grammar.pm:711 > � in statement_control:sym<use> at src/Perl6/Grammar.pm:709 > � in statement_control at src/Perl6/Grammar.pm:588 > � in statement at src/Perl6/Grammar.pm:503 > � in statementlist at src/Perl6/Grammar.pm:490 > � in comp_unit at src/Perl6/Grammar.pm:458 > � in TOP at src/Perl6/Grammar.pm:36 > $ >
Perl6::Compiler is a Rakudo-only class; it isn't in the spec, and it's a nqp file, so at the very least it would have to be loaded with :lang<nqp>. Loading the .pbc files from blib/ won't do you much good either, as the .pm files always are canonical. Rejecting ticket.