Ticket #720: pdd19pod29may.patch
| File pdd19pod29may.patch, 1.0 KB (added by Klaus, 4 years ago) |
|---|
-
docs/pdds/pdd19_pir.pod
old new 1074 1074 }) 1075 1075 .end 1076 1076 1077 = cutPIR1077 =end PIR 1078 1078 1079 1079 This will expand the macro C<foo>, after which the input to the PIR parser is: 1080 1080 … … 1087 1087 print "4" 1088 1088 .end 1089 1089 1090 = cutPIR1090 =end PIR 1091 1091 1092 1092 which will result in the output: 1093 1093 … … 1108 1108 # ... 1109 1109 .endm 1110 1110 1111 = cutPIR1111 =end PIR 1112 1112 1113 1113 =head4 Unique local variables 1114 1114 … … 1128 1128 # ... 1129 1129 .endm 1130 1130 1131 = cutPIR1131 =end PIR 1132 1132 1133 1133 The C<.macro_local> directive declares a local variable with a unique name in 1134 1134 the macro. When the macro C<.foo()> is called, the resulting code that is … … 1144 1144 1145 1145 .end 1146 1146 1147 = cut1147 =end PIR 1148 1148 1149 1149 The user can also declare a local variable with a unique name set to the 1150 1150 symbolic value of one of the macro parameters. … … 1234 1234 .foo("y") 1235 1235 .end 1236 1236 1237 = beginPIR1237 =end PIR 1238 1238 1239 1239 the resulting code that is given to the parser will read as follows: 1240 1240
