Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: 08af114527
Fetching contributors…

Cannot retrieve contributors at this time

69 lines (45 sloc) 1.143 kB
# $Id$
=head1 TITLE
chitchat.pir - A ChitChat compiler.
=head2 Description
This is the base file for the ChitChat 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 'ChiChat'.
=head2 Functions
=over 4
.namespace [ 'Transcript' ]
.sub 'show:' :method
.param pmc arg
say arg
.namespace []
.sub 'onload' :anon :load
$P0 = newclass 'Transcript'
$P0 = new 'Transcript'
set_hll_global 'Transcript', $P0
=item onload()
Creates the ChitChat compiler using a C<PCT::HLLCompiler>
.namespace [ 'ChitChat::Compiler' ]
.sub 'onload' :anon :load
load_bytecode 'PCT.pbc'
$P0 = get_hll_global ['PCT'], 'HLLCompiler'
$P1 = $P0.'new'()
.include 'src/builtins.pir'
.include 'src/gen_grammar.pir'
.include 'src/gen_actions.pir'
# Local Variables:
# mode: pir
# fill-column: 100
# End:
# vim: expandtab shiftwidth=4 ft=pir:
Jump to Line
Something went wrong with that request. Please try again.