Mercurial > hg > Papers > 2019 > anatofuz-thesis
view paper/codes/src_main.nqp @ 29:96e9cf9c2ea2
add source files
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 12 Feb 2019 17:02:56 +0900 |
parents | |
children |
line wrap: on
line source
use Perl6::Grammar; use Perl6::Actions; use Perl6::Compiler; # Initialize Rakudo runtime support. nqp::p6init(); # Create and configure compiler object. my $comp := Perl6::Compiler.new(); $comp.language('perl6'); $comp.parsegrammar(Perl6::Grammar); $comp.parseactions(Perl6::Actions); $comp.addstage('syntaxcheck', :before<ast>); $comp.addstage('optimize', :after<ast>); hll-config($comp.config); nqp::bindhllsym('perl6', '$COMPILER_CONFIG', $comp.config);