Ticket #720: pdd19pod29may.patch

File pdd19pod29may.patch, 1.0 KB (added by Klaus, 6 years ago)

created with diff -u docs/pdds/pdd19_pir.pod docs/pdds/pdd19_pir.pod.new > pdd19pod29may.patch

  • docs/pdds/pdd19_pir.pod

    old new  
    10741074        }) 
    10751075 .end 
    10761076 
    1077 =cut PIR 
     1077=end PIR 
    10781078 
    10791079This will expand the macro C<foo>, after which the input to the PIR parser is: 
    10801080 
     
    10871087   print "4" 
    10881088 .end 
    10891089 
    1090 =cut PIR 
     1090=end PIR 
    10911091 
    10921092which will result in the output: 
    10931093 
     
    11081108    # ... 
    11091109  .endm 
    11101110 
    1111 =cut PIR 
     1111=end PIR 
    11121112 
    11131113=head4 Unique local variables 
    11141114 
     
    11281128    # ... 
    11291129  .endm 
    11301130 
    1131 =cut PIR 
     1131=end PIR 
    11321132 
    11331133The C<.macro_local> directive declares a local variable with a unique name in 
    11341134the macro. When the macro C<.foo()> is called, the resulting code that is 
     
    11441144 
    11451145  .end 
    11461146 
    1147 =cut 
     1147=end PIR 
    11481148 
    11491149The user can also declare a local variable with a unique name set to the 
    11501150symbolic value of one of the macro parameters. 
     
    12341234    .foo("y") 
    12351235  .end 
    12361236 
    1237 =begin PIR 
     1237=end PIR 
    12381238 
    12391239the resulting code that is given to the parser will read as follows: 
    12401240