1 # Copyright (C) 2007-2008, The Perl Foundation.
4 .namespace [ 'NQP::Compiler' ]
6 .sub '__onload' :load :init
7 load_bytecode 'PGE.pbc'
8 load_bytecode 'PCT.pbc'
10 $P0 = new [ 'PCT::HLLCompiler' ]
12 $P0.'parsegrammar'('NQP::Grammar')
13 $P0.'parseactions'('NQP::Grammar::Actions')
16 set_hll_global ['NQP::Grammar'], '$!endstmt', $P0
22 .return $P0.'command_line'(args, 'encoding'=>'utf8', 'transcode'=>'ascii')
25 .include 'src/Grammar_gen.pir'
27 .include 'src/Grammar/Actions.pir'
29 .include 'src/builtins.pir'
35 # vim: expandtab shiftwidth=4 ft=pir: