1. allison
  2. parvik

Source

parvik / src / parvik.pir

# $Id$

=head1 TITLE

parvik.pir - A Parvik compiler.

=head2 Description

This is the base file for the Parvik compiler.

This file includes the parsing and grammar rules from
the src/ directory, loads the relevant PGE libraries,
and registers the compiler under the name 'Parvik'.

=head2 Functions

=over 4

=item onload()

Creates the Parvik compiler using a C<PCT::HLLCompiler>
object.

=cut

.HLL 'parvik'
.loadlib 'parvik_group'

.namespace []

.sub '' :anon :load
    load_bytecode 'HLL.pbc'

    .local pmc hllns, parrotns, imports
    hllns = get_hll_namespace
    parrotns = get_root_namespace ['parrot']
    imports = split ' ', 'PAST PCT HLL Regex Hash'
    parrotns.'export_to'(hllns, imports)
.end

.include 'src/gen_grammar.pir'
.include 'src/gen_actions.pir'
.include 'src/gen_compiler.pir'
.include 'src/gen_runtime.pir'

=back

=cut

# Local Variables:
#   mode: pir
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4 ft=pir: