3 pynie.pir - A Python compiler.
7 This is the base file for the Pynie compiler.
15 Loads the PGE libraries needed for running the parser,
16 and registers the Pynie compiler using a C<HLLCompiler>
21 .sub '__onload' :load :init
22 load_bytecode 'PCT.pbc'
24 $P0 = get_hll_global ['PCT'], 'HLLCompiler'
26 $P0.'language'('Pynie')
27 $P0.'parsegrammar'('Pynie::Grammar')
28 $P0.'parseactions'('Pynie::Grammar::Actions')
30 $P0.'commandline_banner'("Pynie: a Python compiler for Parrot.\n")
31 $P0.'commandline_prompt'('>>> ')
36 =item main(args :slurpy) :main
38 Start compilation by passing any command line C<args>
39 to the Pynie compiler.
45 load_bytecode 'PGE/Dumper.pbc'
47 .return $P0.'command_line'(args)
51 .include 'src/gen_grammar.pir'
52 .include 'src/gen_actions.pir'
53 .include 'src/parser/indent.pir'
55 .include 'src/builtins/io.pir'
56 .include 'src/builtins/lists.pir'
57 .include 'src/builtins/oper.pir'
67 # vim: expandtab shiftwidth=4 ft=pir: