TITLE ^

past_perl6.pir - PAST support routines for perl6

DESCRIPTION ^

This file contains support routines for PAST nodes in the perl6 compiler.

METHODS ^

init_perl6([ child1, child2, ... , ] [ 'attr1' => value1, ... ])

Initialize a PAST::Block node as a perl6 block. This routine initializes the block's symbol table with a copy of any outer block's symbol table, and creates a mydecl hash to keep track of symbols defined locally in the block.

init_lexicals( )

Initialize the block with lexicals that are defined in every block, including $_, $/, and $!.

mydecl(name, [flag])

Gets/sets the current declaration status for name, if flag is true, then the block has already declared a local symbol called name.


parrot