On Mon, Nov 27, 2006 at 01:13:52AM -0800, Allison Randal wrote: > .sub '__onload' :load :init > # load your modules > $P1 = new [ 'HLLCompiler' ] > $P1.'init'('language'=>'punie', 'parse_grammar'=>'Punie::Parser', > 'ast_grammar'=>'Punie::AST::Grammar') > .end > .sub 'main' :main > .param pmc args > $P0 = compreg 'punie' > $P1 = $P0.'command_line'(args) > .return ($P1) > .end > > [...] > > Standardized infrastructure code good. Make Ogg-itect happy. :)
We definitely want Ogg-itect to remain happy. :-) Now implemented in r15882 as shown above, sans the helper 'init' method (which I'll add later tonight). Examples are in languages/perl6/ and languages/abc/ . Time permitting tonight I will also refactor the monolithic 'command_line' method of HLLCompiler into separate shorter methods. Pm