Author: pmichaud Date: Thu Apr 10 19:28:40 2008 New Revision: 26921 Modified: trunk/docs/pdds/pdd26_ast.pod
Changes in other areas also in this revision: Modified: trunk/compilers/pct/src/PAST/Node.pir Log: [pct]: * Add symbol_defaults method to PAST::Block, to simply setting default 'scope' attribute for PAST::Var nodes. Modified: trunk/docs/pdds/pdd26_ast.pod ============================================================================== --- trunk/docs/pdds/pdd26_ast.pod (original) +++ trunk/docs/pdds/pdd26_ast.pod Thu Apr 10 19:28:40 2008 @@ -486,6 +486,14 @@ typically used to provide the C<scope> attribute for any nested C<PAST::Var> nodes that do not provide an explicit C<scope> attribute. +=item symbol_defaults([attr1 => val1, attr2 => val2, ...]) + +Sets default attributes for symbols that aren't explicitly +given by the C<symbol> method above. For example, an abstract +syntax tree can use this method on a top-level C<PAST::Block> +to specify the C<scope> attribute to be used for all +variable nodes that don't otherwise provide one. + =item pir_pragma([value]) Get/set any PIR pragmas to be used when generating the block.