load-compiler.nqp (rakudo-2020.08.2) | : | load-compiler.nqp (rakudo-2020.09) | ||
---|---|---|---|---|
use Perl6::Grammar; | use Perl6::Grammar; | |||
use Perl6::Actions; | use Perl6::Actions; | |||
use Perl6::Compiler; | use Perl6::Compiler; | |||
use Perl6::SysConfig; | use Perl6::SysConfig; | |||
nqp::bindhllsym('default', 'SysConfig', Perl6::SysConfig.new()); | my %rakudo-build-config := nqp::hash(); | |||
hll-config(nqp::gethllsym('default', 'SysConfig').rakudo-build-config); | hll-config(%rakudo-build-config); | |||
nqp::bindhllsym('default', 'SysConfig', Perl6::SysConfig.new(%rakudo-build-confi | ||||
g)); | ||||
# Create and configure compiler object. | # Create and configure compiler object. | |||
my $comp := Perl6::Compiler.new(); | my $comp := Perl6::Compiler.new(); | |||
$comp.language('Raku'); | $comp.language('Raku'); | |||
$comp.parsegrammar(Perl6::Grammar); | $comp.parsegrammar(Perl6::Grammar); | |||
$comp.parseactions(Perl6::Actions); | $comp.parseactions(Perl6::Actions); | |||
$comp.addstage('syntaxcheck', :before<ast>); | $comp.addstage('syntaxcheck', :before<ast>); | |||
$comp.addstage('optimize', :after<ast>); | $comp.addstage('optimize', :after<ast>); | |||
nqp::bindattr($comp, HLL::Compiler, '%!cli-options', nqp::hash()); | nqp::bindattr($comp, HLL::Compiler, '%!cli-options', nqp::hash()); | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 4 lines changed or added |