Author: kjs Date: Fri Apr 4 02:16:08 2008 New Revision: 26739 Modified: trunk/docs/pdds/draft/pdd29_compiler_tools.pod
Log: [pdd29] fix a small layout thing; add a bit to synopsis for actions; add some HLLCompiler API methods. Modified: trunk/docs/pdds/draft/pdd29_compiler_tools.pod ============================================================================== --- trunk/docs/pdds/draft/pdd29_compiler_tools.pod (original) +++ trunk/docs/pdds/draft/pdd29_compiler_tools.pod Fri Apr 4 02:16:08 2008 @@ -90,10 +90,10 @@ {{ Is this a good idea? }} -class Foo::Grammar::Actions; + class Foo::Grammar::Actions; method TOP($/) { - my $past := PAST::Block.new( :blocktype('declaration') ); + my $past := PAST::Block.new( :blocktype('declaration'), :node($/) ); for $<statement> { $past.push( $( $_ ) ); } @@ -101,7 +101,10 @@ } method statement($/) { - ... + make PAST::Op.new( $( $<ident> ), + $( $<expression> ), + :pasttype('bind'), + :node($/) ); } method expression($/, $key) { @@ -292,6 +295,18 @@ =over 4 +=item language + +$P0.'language'('Foo') + +=item parsegrammar + +$P0.'parsegrammar'('Foo::Grammar') + +=item parseactions + +$P0.'parseactions('Foo::Grammar::Actions') + =item commandline_prompt $P0.'commandline_prompt'($S0)