1 2 3================================================================ 4DSL BREAK/CONTINUE IN SINGLE WHILE/DO-WHILE 5 6mlr --opprint --from ./reg-test/input/abixy put 7 while ($i < 5) { 8 $i += 1; 9 break; 10 $a = "ERROR"; 11 } 12 13a b i x y 14pan pan 2 0.3467901443380824 0.7268028627434533 15eks pan 3 0.7586799647899636 0.5221511083334797 16wye wye 4 0.20460330576630303 0.33831852551664776 17eks wye 5 0.38139939387114097 0.13418874328430463 18wye pan 5 0.5732889198020006 0.8636244699032729 19zee pan 6 0.5271261600918548 0.49322128674835697 20eks zee 7 0.6117840605678454 0.1878849191181694 21zee wye 8 0.5985540091064224 0.976181385699006 22hat wye 9 0.03144187646093577 0.7495507603507059 23pan wye 10 0.5026260055412137 0.9526183602969864 24 25mlr --opprint --from ./reg-test/input/abixy put 26 while ($i < 5) { 27 $i += 1; 28 continue; 29 $a = "ERROR"; 30 } 31 32a b i x y 33pan pan 5 0.3467901443380824 0.7268028627434533 34eks pan 5 0.7586799647899636 0.5221511083334797 35wye wye 5 0.20460330576630303 0.33831852551664776 36eks wye 5 0.38139939387114097 0.13418874328430463 37wye pan 5 0.5732889198020006 0.8636244699032729 38zee pan 6 0.5271261600918548 0.49322128674835697 39eks zee 7 0.6117840605678454 0.1878849191181694 40zee wye 8 0.5985540091064224 0.976181385699006 41hat wye 9 0.03144187646093577 0.7495507603507059 42pan wye 10 0.5026260055412137 0.9526183602969864 43 44mlr --opprint --from ./reg-test/input/abixy put 45 do { 46 $i += 1; 47 break; 48 $a = "ERROR"; 49 } while ($i < 5); 50 51a b i x y 52pan pan 2 0.3467901443380824 0.7268028627434533 53eks pan 3 0.7586799647899636 0.5221511083334797 54wye wye 4 0.20460330576630303 0.33831852551664776 55eks wye 5 0.38139939387114097 0.13418874328430463 56wye pan 6 0.5732889198020006 0.8636244699032729 57zee pan 7 0.5271261600918548 0.49322128674835697 58eks zee 8 0.6117840605678454 0.1878849191181694 59zee wye 9 0.5985540091064224 0.976181385699006 60hat wye 10 0.03144187646093577 0.7495507603507059 61pan wye 11 0.5026260055412137 0.9526183602969864 62 63mlr --opprint --from ./reg-test/input/abixy put 64 do { 65 $i += 1; 66 continue; 67 $a = "ERROR"; 68 } while ($i < 5); 69 70a b i x y 71pan pan 5 0.3467901443380824 0.7268028627434533 72eks pan 5 0.7586799647899636 0.5221511083334797 73wye wye 5 0.20460330576630303 0.33831852551664776 74eks wye 5 0.38139939387114097 0.13418874328430463 75wye pan 6 0.5732889198020006 0.8636244699032729 76zee pan 7 0.5271261600918548 0.49322128674835697 77eks zee 8 0.6117840605678454 0.1878849191181694 78zee wye 9 0.5985540091064224 0.976181385699006 79hat wye 10 0.03144187646093577 0.7495507603507059 80pan wye 11 0.5026260055412137 0.9526183602969864 81 82mlr --opprint --from ./reg-test/input/abixy put 83 $NR = NR; 84 while ($i < 5) { 85 $i += 1; 86 if (NR == 2) { 87 break; 88 } 89 $a = "reached"; 90 } 91 92a b i x y NR 93reached pan 5 0.3467901443380824 0.7268028627434533 1 94eks pan 3 0.7586799647899636 0.5221511083334797 2 95reached wye 5 0.20460330576630303 0.33831852551664776 3 96reached wye 5 0.38139939387114097 0.13418874328430463 4 97wye pan 5 0.5732889198020006 0.8636244699032729 5 98zee pan 6 0.5271261600918548 0.49322128674835697 6 99eks zee 7 0.6117840605678454 0.1878849191181694 7 100zee wye 8 0.5985540091064224 0.976181385699006 8 101hat wye 9 0.03144187646093577 0.7495507603507059 9 102pan wye 10 0.5026260055412137 0.9526183602969864 10 103 104mlr --opprint --from ./reg-test/input/abixy put 105 $NR = NR; 106 while ($i < 5) { 107 $i += 1; 108 if (NR == 2) { 109 continue; 110 } 111 $a = "reached"; 112 } 113 114a b i x y NR 115reached pan 5 0.3467901443380824 0.7268028627434533 1 116eks pan 5 0.7586799647899636 0.5221511083334797 2 117reached wye 5 0.20460330576630303 0.33831852551664776 3 118reached wye 5 0.38139939387114097 0.13418874328430463 4 119wye pan 5 0.5732889198020006 0.8636244699032729 5 120zee pan 6 0.5271261600918548 0.49322128674835697 6 121eks zee 7 0.6117840605678454 0.1878849191181694 7 122zee wye 8 0.5985540091064224 0.976181385699006 8 123hat wye 9 0.03144187646093577 0.7495507603507059 9 124pan wye 10 0.5026260055412137 0.9526183602969864 10 125 126mlr --opprint --from ./reg-test/input/abixy put 127$NR = NR; 128 do { 129 $i += 1; 130 if (NR == 2) { 131 break; 132 } 133 $a = "reached"; 134 } while ($i < 5); 135 136a b i x y NR 137reached pan 5 0.3467901443380824 0.7268028627434533 1 138eks pan 3 0.7586799647899636 0.5221511083334797 2 139reached wye 5 0.20460330576630303 0.33831852551664776 3 140reached wye 5 0.38139939387114097 0.13418874328430463 4 141reached pan 6 0.5732889198020006 0.8636244699032729 5 142reached pan 7 0.5271261600918548 0.49322128674835697 6 143reached zee 8 0.6117840605678454 0.1878849191181694 7 144reached wye 9 0.5985540091064224 0.976181385699006 8 145reached wye 10 0.03144187646093577 0.7495507603507059 9 146reached wye 11 0.5026260055412137 0.9526183602969864 10 147 148mlr --opprint --from ./reg-test/input/abixy put 149 $NR = NR; 150 do { 151 $i += 1; 152 if (NR == 2) { 153 continue; 154 } 155 $a = "reached"; 156 } while ($i < 5); 157 158a b i x y NR 159reached pan 5 0.3467901443380824 0.7268028627434533 1 160eks pan 5 0.7586799647899636 0.5221511083334797 2 161reached wye 5 0.20460330576630303 0.33831852551664776 3 162reached wye 5 0.38139939387114097 0.13418874328430463 4 163reached pan 6 0.5732889198020006 0.8636244699032729 5 164reached pan 7 0.5271261600918548 0.49322128674835697 6 165reached zee 8 0.6117840605678454 0.1878849191181694 7 166reached wye 9 0.5985540091064224 0.976181385699006 8 167reached wye 10 0.03144187646093577 0.7495507603507059 9 168reached wye 11 0.5026260055412137 0.9526183602969864 10 169 170 171================================================================ 172DSL BREAK/CONTINUE IN NESTED WHILE/DO-WHILE 173 174mlr --opprint --from ./reg-test/input/abixy put 175 $j = NR; 176 while ($j < 4) { 177 $k = NR; 178 $j += 1; 179 break; 180 while ($k < 7) { 181 $k += 1 182 } 183 } 184 185a b i x y j k 186pan pan 1 0.3467901443380824 0.7268028627434533 2 1 187eks pan 2 0.7586799647899636 0.5221511083334797 3 2 188wye wye 3 0.20460330576630303 0.33831852551664776 4 3 189 190a b i x y j 191eks wye 4 0.38139939387114097 0.13418874328430463 4 192wye pan 5 0.5732889198020006 0.8636244699032729 5 193zee pan 6 0.5271261600918548 0.49322128674835697 6 194eks zee 7 0.6117840605678454 0.1878849191181694 7 195zee wye 8 0.5985540091064224 0.976181385699006 8 196hat wye 9 0.03144187646093577 0.7495507603507059 9 197pan wye 10 0.5026260055412137 0.9526183602969864 10 198 199mlr --opprint --from ./reg-test/input/abixy put 200 $j = NR; 201 while ($j < 4) { 202 $k = NR; 203 $j += 1; 204 continue; 205 while ($k < 7) { 206 $k += 1 207 } 208 } 209 210a b i x y j k 211pan pan 1 0.3467901443380824 0.7268028627434533 4 1 212eks pan 2 0.7586799647899636 0.5221511083334797 4 2 213wye wye 3 0.20460330576630303 0.33831852551664776 4 3 214 215a b i x y j 216eks wye 4 0.38139939387114097 0.13418874328430463 4 217wye pan 5 0.5732889198020006 0.8636244699032729 5 218zee pan 6 0.5271261600918548 0.49322128674835697 6 219eks zee 7 0.6117840605678454 0.1878849191181694 7 220zee wye 8 0.5985540091064224 0.976181385699006 8 221hat wye 9 0.03144187646093577 0.7495507603507059 9 222pan wye 10 0.5026260055412137 0.9526183602969864 10 223 224mlr --opprint --from ./reg-test/input/abixy put 225 $j = NR; 226 while ($j < 4) { 227 $k = NR; 228 $j += 1; 229 while ($k < 7) { 230 $k += 1; 231 break; 232 $k += 10000; 233 } 234 } 235 236a b i x y j k 237pan pan 1 0.3467901443380824 0.7268028627434533 4 2 238eks pan 2 0.7586799647899636 0.5221511083334797 4 3 239wye wye 3 0.20460330576630303 0.33831852551664776 4 4 240 241a b i x y j 242eks wye 4 0.38139939387114097 0.13418874328430463 4 243wye pan 5 0.5732889198020006 0.8636244699032729 5 244zee pan 6 0.5271261600918548 0.49322128674835697 6 245eks zee 7 0.6117840605678454 0.1878849191181694 7 246zee wye 8 0.5985540091064224 0.976181385699006 8 247hat wye 9 0.03144187646093577 0.7495507603507059 9 248pan wye 10 0.5026260055412137 0.9526183602969864 10 249 250mlr --opprint --from ./reg-test/input/abixy put 251 $j = NR; 252 while ($j < 4) { 253 $k = NR; 254 $j += 1; 255 while ($k < 7) { 256 $k += 1; 257 continue; 258 $k += 10000; 259 } 260 } 261 262a b i x y j k 263pan pan 1 0.3467901443380824 0.7268028627434533 4 7 264eks pan 2 0.7586799647899636 0.5221511083334797 4 7 265wye wye 3 0.20460330576630303 0.33831852551664776 4 7 266 267a b i x y j 268eks wye 4 0.38139939387114097 0.13418874328430463 4 269wye pan 5 0.5732889198020006 0.8636244699032729 5 270zee pan 6 0.5271261600918548 0.49322128674835697 6 271eks zee 7 0.6117840605678454 0.1878849191181694 7 272zee wye 8 0.5985540091064224 0.976181385699006 8 273hat wye 9 0.03144187646093577 0.7495507603507059 9 274pan wye 10 0.5026260055412137 0.9526183602969864 10 275 276mlr --opprint --from ./reg-test/input/abixy put 277 $j = NR; 278 while ($j < 4) { 279 $k = NR; 280 $j += 1; 281 if (NR == 2 || NR == 8) { 282 break; 283 } 284 while ($k < 7) { 285 $k += 1 286 } 287 } 288 289a b i x y j k 290pan pan 1 0.3467901443380824 0.7268028627434533 4 7 291eks pan 2 0.7586799647899636 0.5221511083334797 3 2 292wye wye 3 0.20460330576630303 0.33831852551664776 4 7 293 294a b i x y j 295eks wye 4 0.38139939387114097 0.13418874328430463 4 296wye pan 5 0.5732889198020006 0.8636244699032729 5 297zee pan 6 0.5271261600918548 0.49322128674835697 6 298eks zee 7 0.6117840605678454 0.1878849191181694 7 299zee wye 8 0.5985540091064224 0.976181385699006 8 300hat wye 9 0.03144187646093577 0.7495507603507059 9 301pan wye 10 0.5026260055412137 0.9526183602969864 10 302 303mlr --opprint --from ./reg-test/input/abixy put 304 $j = NR; 305 while ($j < 4) { 306 $k = NR; 307 $j += 1; 308 if (NR == 2 || NR == 8) { 309 continue; 310 } 311 while ($k < 7) { 312 $k += 1 313 } 314 } 315 316a b i x y j k 317pan pan 1 0.3467901443380824 0.7268028627434533 4 7 318eks pan 2 0.7586799647899636 0.5221511083334797 4 2 319wye wye 3 0.20460330576630303 0.33831852551664776 4 7 320 321a b i x y j 322eks wye 4 0.38139939387114097 0.13418874328430463 4 323wye pan 5 0.5732889198020006 0.8636244699032729 5 324zee pan 6 0.5271261600918548 0.49322128674835697 6 325eks zee 7 0.6117840605678454 0.1878849191181694 7 326zee wye 8 0.5985540091064224 0.976181385699006 8 327hat wye 9 0.03144187646093577 0.7495507603507059 9 328pan wye 10 0.5026260055412137 0.9526183602969864 10 329 330mlr --opprint --from ./reg-test/input/abixy put 331 $j = NR; 332 while ($j < 4) { 333 $k = NR; 334 $j += 1; 335 while ($k < 7) { 336 $k += 1; 337 if (NR == 2 || NR == 8) { 338 break; 339 } 340 $k += 10000; 341 } 342 } 343 344a b i x y j k 345pan pan 1 0.3467901443380824 0.7268028627434533 4 10002 346eks pan 2 0.7586799647899636 0.5221511083334797 4 3 347wye wye 3 0.20460330576630303 0.33831852551664776 4 10004 348 349a b i x y j 350eks wye 4 0.38139939387114097 0.13418874328430463 4 351wye pan 5 0.5732889198020006 0.8636244699032729 5 352zee pan 6 0.5271261600918548 0.49322128674835697 6 353eks zee 7 0.6117840605678454 0.1878849191181694 7 354zee wye 8 0.5985540091064224 0.976181385699006 8 355hat wye 9 0.03144187646093577 0.7495507603507059 9 356pan wye 10 0.5026260055412137 0.9526183602969864 10 357 358mlr --opprint --from ./reg-test/input/abixy put 359 $j = NR; 360 while ($j < 4) { 361 $k = NR; 362 $j += 1; 363 while ($k < 7) { 364 $k += 1; 365 if (NR == 2 || NR == 8) { 366 continue; 367 } 368 $k += 10000; 369 } 370 } 371 372a b i x y j k 373pan pan 1 0.3467901443380824 0.7268028627434533 4 10002 374eks pan 2 0.7586799647899636 0.5221511083334797 4 7 375wye wye 3 0.20460330576630303 0.33831852551664776 4 10004 376 377a b i x y j 378eks wye 4 0.38139939387114097 0.13418874328430463 4 379wye pan 5 0.5732889198020006 0.8636244699032729 5 380zee pan 6 0.5271261600918548 0.49322128674835697 6 381eks zee 7 0.6117840605678454 0.1878849191181694 7 382zee wye 8 0.5985540091064224 0.976181385699006 8 383hat wye 9 0.03144187646093577 0.7495507603507059 9 384pan wye 10 0.5026260055412137 0.9526183602969864 10 385 386mlr --opprint --from ./reg-test/input/abixy put 387 $j = NR; 388 do { 389 $k = NR; 390 $j += 1; 391 break; 392 do { 393 $k += 1 394 } while ($k < 7); 395 } while ($j < 4); 396 397a b i x y j k 398pan pan 1 0.3467901443380824 0.7268028627434533 2 1 399eks pan 2 0.7586799647899636 0.5221511083334797 3 2 400wye wye 3 0.20460330576630303 0.33831852551664776 4 3 401eks wye 4 0.38139939387114097 0.13418874328430463 5 4 402wye pan 5 0.5732889198020006 0.8636244699032729 6 5 403zee pan 6 0.5271261600918548 0.49322128674835697 7 6 404eks zee 7 0.6117840605678454 0.1878849191181694 8 7 405zee wye 8 0.5985540091064224 0.976181385699006 9 8 406hat wye 9 0.03144187646093577 0.7495507603507059 10 9 407pan wye 10 0.5026260055412137 0.9526183602969864 11 10 408 409mlr --opprint --from ./reg-test/input/abixy put 410 $j = NR; 411 do { 412 $k = NR; 413 $j += 1; 414 continue; 415 do { 416 $k += 1 417 } while ($k < 7); 418 } while ($j < 4); 419 420a b i x y j k 421pan pan 1 0.3467901443380824 0.7268028627434533 4 1 422eks pan 2 0.7586799647899636 0.5221511083334797 4 2 423wye wye 3 0.20460330576630303 0.33831852551664776 4 3 424eks wye 4 0.38139939387114097 0.13418874328430463 5 4 425wye pan 5 0.5732889198020006 0.8636244699032729 6 5 426zee pan 6 0.5271261600918548 0.49322128674835697 7 6 427eks zee 7 0.6117840605678454 0.1878849191181694 8 7 428zee wye 8 0.5985540091064224 0.976181385699006 9 8 429hat wye 9 0.03144187646093577 0.7495507603507059 10 9 430pan wye 10 0.5026260055412137 0.9526183602969864 11 10 431 432mlr --opprint --from ./reg-test/input/abixy put 433 $j = NR; 434 do { 435 $k = NR; 436 $j += 1; 437 do { 438 $k += 1; 439 break; 440 $k += 10000; 441 } while ($k < 7); 442 } while ($j < 4); 443 444a b i x y j k 445pan pan 1 0.3467901443380824 0.7268028627434533 4 2 446eks pan 2 0.7586799647899636 0.5221511083334797 4 3 447wye wye 3 0.20460330576630303 0.33831852551664776 4 4 448eks wye 4 0.38139939387114097 0.13418874328430463 5 5 449wye pan 5 0.5732889198020006 0.8636244699032729 6 6 450zee pan 6 0.5271261600918548 0.49322128674835697 7 7 451eks zee 7 0.6117840605678454 0.1878849191181694 8 8 452zee wye 8 0.5985540091064224 0.976181385699006 9 9 453hat wye 9 0.03144187646093577 0.7495507603507059 10 10 454pan wye 10 0.5026260055412137 0.9526183602969864 11 11 455 456mlr --opprint --from ./reg-test/input/abixy put 457 $j = NR; 458 do { 459 $k = NR; 460 $j += 1; 461 do { 462 $k += 1; 463 continue; 464 $k += 10000; 465 } while ($k < 7); 466 } while ($j < 4); 467 468a b i x y j k 469pan pan 1 0.3467901443380824 0.7268028627434533 4 7 470eks pan 2 0.7586799647899636 0.5221511083334797 4 7 471wye wye 3 0.20460330576630303 0.33831852551664776 4 7 472eks wye 4 0.38139939387114097 0.13418874328430463 5 7 473wye pan 5 0.5732889198020006 0.8636244699032729 6 7 474zee pan 6 0.5271261600918548 0.49322128674835697 7 7 475eks zee 7 0.6117840605678454 0.1878849191181694 8 8 476zee wye 8 0.5985540091064224 0.976181385699006 9 9 477hat wye 9 0.03144187646093577 0.7495507603507059 10 10 478pan wye 10 0.5026260055412137 0.9526183602969864 11 11 479 480mlr --opprint --from ./reg-test/input/abixy put 481 $j = NR; 482 do { 483 $k = NR; 484 $j += 1; 485 if (NR == 2 || NR == 8) { 486 break; 487 } 488 do { 489 $k += 1 490 } while ($k < 7); 491 } while ($j < 4); 492 493a b i x y j k 494pan pan 1 0.3467901443380824 0.7268028627434533 4 7 495eks pan 2 0.7586799647899636 0.5221511083334797 3 2 496wye wye 3 0.20460330576630303 0.33831852551664776 4 7 497eks wye 4 0.38139939387114097 0.13418874328430463 5 7 498wye pan 5 0.5732889198020006 0.8636244699032729 6 7 499zee pan 6 0.5271261600918548 0.49322128674835697 7 7 500eks zee 7 0.6117840605678454 0.1878849191181694 8 8 501zee wye 8 0.5985540091064224 0.976181385699006 9 8 502hat wye 9 0.03144187646093577 0.7495507603507059 10 10 503pan wye 10 0.5026260055412137 0.9526183602969864 11 11 504 505mlr --opprint --from ./reg-test/input/abixy put 506 $j = NR; 507 do { 508 $k = NR; 509 $j += 1; 510 if (NR == 2 || NR == 8) { 511 continue; 512 } 513 do { 514 $k += 1 515 } while ($k < 7); 516 } while ($j < 4); 517 518a b i x y j k 519pan pan 1 0.3467901443380824 0.7268028627434533 4 7 520eks pan 2 0.7586799647899636 0.5221511083334797 4 2 521wye wye 3 0.20460330576630303 0.33831852551664776 4 7 522eks wye 4 0.38139939387114097 0.13418874328430463 5 7 523wye pan 5 0.5732889198020006 0.8636244699032729 6 7 524zee pan 6 0.5271261600918548 0.49322128674835697 7 7 525eks zee 7 0.6117840605678454 0.1878849191181694 8 8 526zee wye 8 0.5985540091064224 0.976181385699006 9 8 527hat wye 9 0.03144187646093577 0.7495507603507059 10 10 528pan wye 10 0.5026260055412137 0.9526183602969864 11 11 529 530mlr --opprint --from ./reg-test/input/abixy put 531 $j = NR; 532 do { 533 $k = NR; 534 $j += 1; 535 do { 536 $k += 1; 537 if (NR == 2 || NR == 8) { 538 break; 539 } 540 $k += 10000; 541 } while ($k < 7); 542 } while ($j < 4); 543 544a b i x y j k 545pan pan 1 0.3467901443380824 0.7268028627434533 4 10002 546eks pan 2 0.7586799647899636 0.5221511083334797 4 3 547wye wye 3 0.20460330576630303 0.33831852551664776 4 10004 548eks wye 4 0.38139939387114097 0.13418874328430463 5 10005 549wye pan 5 0.5732889198020006 0.8636244699032729 6 10006 550zee pan 6 0.5271261600918548 0.49322128674835697 7 10007 551eks zee 7 0.6117840605678454 0.1878849191181694 8 10008 552zee wye 8 0.5985540091064224 0.976181385699006 9 9 553hat wye 9 0.03144187646093577 0.7495507603507059 10 10010 554pan wye 10 0.5026260055412137 0.9526183602969864 11 10011 555 556mlr --opprint --from ./reg-test/input/abixy put 557 $j = NR; 558 do { 559 $k = NR; 560 $j += 1; 561 do { 562 $k += 1; 563 if (NR == 2 || NR == 8) { 564 continue; 565 } 566 $k += 10000; 567 } while ($k < 7); 568 } while ($j < 4); 569 570a b i x y j k 571pan pan 1 0.3467901443380824 0.7268028627434533 4 10002 572eks pan 2 0.7586799647899636 0.5221511083334797 4 7 573wye wye 3 0.20460330576630303 0.33831852551664776 4 10004 574eks wye 4 0.38139939387114097 0.13418874328430463 5 10005 575wye pan 5 0.5732889198020006 0.8636244699032729 6 10006 576zee pan 6 0.5271261600918548 0.49322128674835697 7 10007 577eks zee 7 0.6117840605678454 0.1878849191181694 8 10008 578zee wye 8 0.5985540091064224 0.976181385699006 9 9 579hat wye 9 0.03144187646093577 0.7495507603507059 10 10010 580pan wye 10 0.5026260055412137 0.9526183602969864 11 10011 581 582 583================================================================ 584DSL BREAK/CONTINUE IN SINGLE FOR-SREC 585 586mlr --opprint --from ./reg-test/input/abixy put -q 587 for (k,v in $*) { 588 @logging1[NR][k] = v; 589 if (k == "x") { 590 break; 591 } 592 } 593 end { 594 emitp @logging1, "NR", "k"; 595 } 596 597NR k logging1 5981 a pan 5991 b pan 6001 i 1 6011 x 0.3467901443380824 6022 a eks 6032 b pan 6042 i 2 6052 x 0.7586799647899636 6063 a wye 6073 b wye 6083 i 3 6093 x 0.20460330576630303 6104 a eks 6114 b wye 6124 i 4 6134 x 0.38139939387114097 6145 a wye 6155 b pan 6165 i 5 6175 x 0.5732889198020006 6186 a zee 6196 b pan 6206 i 6 6216 x 0.5271261600918548 6227 a eks 6237 b zee 6247 i 7 6257 x 0.6117840605678454 6268 a zee 6278 b wye 6288 i 8 6298 x 0.5985540091064224 6309 a hat 6319 b wye 6329 i 9 6339 x 0.03144187646093577 63410 a pan 63510 b wye 63610 i 10 63710 x 0.5026260055412137 638 639mlr --opprint --from ./reg-test/input/abixy put -q 640 for (k,v in $*) { 641 if (k == "x") { 642 break; 643 } 644 @logging2[NR][k] = v; 645 } 646 end { 647 emitp @logging2, "NR", "k"; 648 } 649 650NR k logging2 6511 a pan 6521 b pan 6531 i 1 6542 a eks 6552 b pan 6562 i 2 6573 a wye 6583 b wye 6593 i 3 6604 a eks 6614 b wye 6624 i 4 6635 a wye 6645 b pan 6655 i 5 6666 a zee 6676 b pan 6686 i 6 6697 a eks 6707 b zee 6717 i 7 6728 a zee 6738 b wye 6748 i 8 6759 a hat 6769 b wye 6779 i 9 67810 a pan 67910 b wye 68010 i 10 681 682mlr --opprint --from ./reg-test/input/abixy put -q 683 for (k,v in $*) { 684 @logging3[NR][k] = v; 685 if (k == "x") { 686 continue; 687 } 688 } 689 end { 690 emitp @logging3, "NR", "k"; 691 } 692 693NR k logging3 6941 a pan 6951 b pan 6961 i 1 6971 x 0.3467901443380824 6981 y 0.7268028627434533 6992 a eks 7002 b pan 7012 i 2 7022 x 0.7586799647899636 7032 y 0.5221511083334797 7043 a wye 7053 b wye 7063 i 3 7073 x 0.20460330576630303 7083 y 0.33831852551664776 7094 a eks 7104 b wye 7114 i 4 7124 x 0.38139939387114097 7134 y 0.13418874328430463 7145 a wye 7155 b pan 7165 i 5 7175 x 0.5732889198020006 7185 y 0.8636244699032729 7196 a zee 7206 b pan 7216 i 6 7226 x 0.5271261600918548 7236 y 0.49322128674835697 7247 a eks 7257 b zee 7267 i 7 7277 x 0.6117840605678454 7287 y 0.1878849191181694 7298 a zee 7308 b wye 7318 i 8 7328 x 0.5985540091064224 7338 y 0.976181385699006 7349 a hat 7359 b wye 7369 i 9 7379 x 0.03144187646093577 7389 y 0.7495507603507059 73910 a pan 74010 b wye 74110 i 10 74210 x 0.5026260055412137 74310 y 0.9526183602969864 744 745mlr --opprint --from ./reg-test/input/abixy put -q 746 for (k,v in $*) { 747 if (k == "x") { 748 continue; 749 } 750 @logging4[NR][k] = v; 751 } 752 end { 753 emitp @logging4, "NR", "k" 754 } 755 756NR k logging4 7571 a pan 7581 b pan 7591 i 1 7601 y 0.7268028627434533 7612 a eks 7622 b pan 7632 i 2 7642 y 0.5221511083334797 7653 a wye 7663 b wye 7673 i 3 7683 y 0.33831852551664776 7694 a eks 7704 b wye 7714 i 4 7724 y 0.13418874328430463 7735 a wye 7745 b pan 7755 i 5 7765 y 0.8636244699032729 7776 a zee 7786 b pan 7796 i 6 7806 y 0.49322128674835697 7817 a eks 7827 b zee 7837 i 7 7847 y 0.1878849191181694 7858 a zee 7868 b wye 7878 i 8 7888 y 0.976181385699006 7899 a hat 7909 b wye 7919 i 9 7929 y 0.7495507603507059 79310 a pan 79410 b wye 79510 i 10 79610 y 0.9526183602969864 797 798mlr --opprint --from ./reg-test/input/abixy put -q 799 for (k,v in $*) { 800 @logging1[NR][k] = v; 801 if (k == "x") { 802 break; 803 } 804 } 805 806 for (k,v in $*) { 807 if (k == "x") { 808 break; 809 } 810 @logging2[NR][k] = v; 811 } 812 813 for (k,v in $*) { 814 @logging3[NR][k] = v; 815 if (k == "x") { 816 continue; 817 } 818 } 819 820 for (k,v in $*) { 821 if (k == "x") { 822 continue; 823 } 824 @logging4[NR][k] = v; 825 } 826 827 end { 828 emitp @logging1, "NR", "k"; 829 emitp @logging2, "NR", "k"; 830 emitp @logging3, "NR", "k"; 831 emitp @logging4, "NR", "k" 832 } 833 834NR k logging1 8351 a pan 8361 b pan 8371 i 1 8381 x 0.3467901443380824 8392 a eks 8402 b pan 8412 i 2 8422 x 0.7586799647899636 8433 a wye 8443 b wye 8453 i 3 8463 x 0.20460330576630303 8474 a eks 8484 b wye 8494 i 4 8504 x 0.38139939387114097 8515 a wye 8525 b pan 8535 i 5 8545 x 0.5732889198020006 8556 a zee 8566 b pan 8576 i 6 8586 x 0.5271261600918548 8597 a eks 8607 b zee 8617 i 7 8627 x 0.6117840605678454 8638 a zee 8648 b wye 8658 i 8 8668 x 0.5985540091064224 8679 a hat 8689 b wye 8699 i 9 8709 x 0.03144187646093577 87110 a pan 87210 b wye 87310 i 10 87410 x 0.5026260055412137 875 876NR k logging2 8771 a pan 8781 b pan 8791 i 1 8802 a eks 8812 b pan 8822 i 2 8833 a wye 8843 b wye 8853 i 3 8864 a eks 8874 b wye 8884 i 4 8895 a wye 8905 b pan 8915 i 5 8926 a zee 8936 b pan 8946 i 6 8957 a eks 8967 b zee 8977 i 7 8988 a zee 8998 b wye 9008 i 8 9019 a hat 9029 b wye 9039 i 9 90410 a pan 90510 b wye 90610 i 10 907 908NR k logging3 9091 a pan 9101 b pan 9111 i 1 9121 x 0.3467901443380824 9131 y 0.7268028627434533 9142 a eks 9152 b pan 9162 i 2 9172 x 0.7586799647899636 9182 y 0.5221511083334797 9193 a wye 9203 b wye 9213 i 3 9223 x 0.20460330576630303 9233 y 0.33831852551664776 9244 a eks 9254 b wye 9264 i 4 9274 x 0.38139939387114097 9284 y 0.13418874328430463 9295 a wye 9305 b pan 9315 i 5 9325 x 0.5732889198020006 9335 y 0.8636244699032729 9346 a zee 9356 b pan 9366 i 6 9376 x 0.5271261600918548 9386 y 0.49322128674835697 9397 a eks 9407 b zee 9417 i 7 9427 x 0.6117840605678454 9437 y 0.1878849191181694 9448 a zee 9458 b wye 9468 i 8 9478 x 0.5985540091064224 9488 y 0.976181385699006 9499 a hat 9509 b wye 9519 i 9 9529 x 0.03144187646093577 9539 y 0.7495507603507059 95410 a pan 95510 b wye 95610 i 10 95710 x 0.5026260055412137 95810 y 0.9526183602969864 959 960NR k logging4 9611 a pan 9621 b pan 9631 i 1 9641 y 0.7268028627434533 9652 a eks 9662 b pan 9672 i 2 9682 y 0.5221511083334797 9693 a wye 9703 b wye 9713 i 3 9723 y 0.33831852551664776 9734 a eks 9744 b wye 9754 i 4 9764 y 0.13418874328430463 9775 a wye 9785 b pan 9795 i 5 9805 y 0.8636244699032729 9816 a zee 9826 b pan 9836 i 6 9846 y 0.49322128674835697 9857 a eks 9867 b zee 9877 i 7 9887 y 0.1878849191181694 9898 a zee 9908 b wye 9918 i 8 9928 y 0.976181385699006 9939 a hat 9949 b wye 9959 i 9 9969 y 0.7495507603507059 99710 a pan 99810 b wye 99910 i 10 100010 y 0.9526183602969864 1001 1002 1003================================================================ 1004DSL BREAK/CONTINUE IN NESTED FOR-SREC 1005 1006mlr --opprint --from ./reg-test/input/abixy put -q 1007 for (k1, v1 in $*) { 1008 @output1[NR][k1] = "before"; 1009 break; 1010 @output1[NR][k1] = v1; 1011 for (k2, v2 in $*) { 1012 @output2[NR][k1."_".k2] = "before"; 1013 @output2[NR][k1."_".k2] = v2; 1014 } 1015 } 1016 end { 1017 emit @output1, "NR", "name"; 1018 emit @output2, "NR", "names"; 1019 } 1020 1021NR name output1 10221 a before 10232 a before 10243 a before 10254 a before 10265 a before 10276 a before 10287 a before 10298 a before 10309 a before 103110 a before 1032 1033mlr --opprint --from ./reg-test/input/abixy put -q 1034 for (k1, v1 in $*) { 1035 @output1[NR][k1] = "before"; 1036 continue; 1037 @output1[NR][k1] = v1; 1038 for (k2, v2 in $*) { 1039 @output2[NR][k1."_".k2] = "before"; 1040 @output2[NR][k1."_".k2] = v2; 1041 } 1042 } 1043 end { 1044 emit @output1, "NR", "name"; 1045 emit @output2, "NR", "names"; 1046 } 1047 1048NR name output1 10491 a before 10501 b before 10511 i before 10521 x before 10531 y before 10542 a before 10552 b before 10562 i before 10572 x before 10582 y before 10593 a before 10603 b before 10613 i before 10623 x before 10633 y before 10644 a before 10654 b before 10664 i before 10674 x before 10684 y before 10695 a before 10705 b before 10715 i before 10725 x before 10735 y before 10746 a before 10756 b before 10766 i before 10776 x before 10786 y before 10797 a before 10807 b before 10817 i before 10827 x before 10837 y before 10848 a before 10858 b before 10868 i before 10878 x before 10888 y before 10899 a before 10909 b before 10919 i before 10929 x before 10939 y before 109410 a before 109510 b before 109610 i before 109710 x before 109810 y before 1099 1100mlr --opprint --from ./reg-test/input/abixy put -q 1101 for (k1, v1 in $*) { 1102 @output1[NR][k1] = "before"; 1103 @output1[NR][k1] = v1; 1104 for (k2, v2 in $*) { 1105 @output2[NR][k1."_".k2] = "before"; 1106 break; 1107 @output2[NR][k1."_".k2] = v2; 1108 } 1109 } 1110 end { 1111 emit @output1, "NR", "name"; 1112 emit @output2, "NR", "names"; 1113 } 1114 1115NR name output1 11161 a pan 11171 b pan 11181 i 1 11191 x 0.3467901443380824 11201 y 0.7268028627434533 11212 a eks 11222 b pan 11232 i 2 11242 x 0.7586799647899636 11252 y 0.5221511083334797 11263 a wye 11273 b wye 11283 i 3 11293 x 0.20460330576630303 11303 y 0.33831852551664776 11314 a eks 11324 b wye 11334 i 4 11344 x 0.38139939387114097 11354 y 0.13418874328430463 11365 a wye 11375 b pan 11385 i 5 11395 x 0.5732889198020006 11405 y 0.8636244699032729 11416 a zee 11426 b pan 11436 i 6 11446 x 0.5271261600918548 11456 y 0.49322128674835697 11467 a eks 11477 b zee 11487 i 7 11497 x 0.6117840605678454 11507 y 0.1878849191181694 11518 a zee 11528 b wye 11538 i 8 11548 x 0.5985540091064224 11558 y 0.976181385699006 11569 a hat 11579 b wye 11589 i 9 11599 x 0.03144187646093577 11609 y 0.7495507603507059 116110 a pan 116210 b wye 116310 i 10 116410 x 0.5026260055412137 116510 y 0.9526183602969864 1166 1167NR names output2 11681 a_a before 11691 b_a before 11701 i_a before 11711 x_a before 11721 y_a before 11732 a_a before 11742 b_a before 11752 i_a before 11762 x_a before 11772 y_a before 11783 a_a before 11793 b_a before 11803 i_a before 11813 x_a before 11823 y_a before 11834 a_a before 11844 b_a before 11854 i_a before 11864 x_a before 11874 y_a before 11885 a_a before 11895 b_a before 11905 i_a before 11915 x_a before 11925 y_a before 11936 a_a before 11946 b_a before 11956 i_a before 11966 x_a before 11976 y_a before 11987 a_a before 11997 b_a before 12007 i_a before 12017 x_a before 12027 y_a before 12038 a_a before 12048 b_a before 12058 i_a before 12068 x_a before 12078 y_a before 12089 a_a before 12099 b_a before 12109 i_a before 12119 x_a before 12129 y_a before 121310 a_a before 121410 b_a before 121510 i_a before 121610 x_a before 121710 y_a before 1218 1219mlr --opprint --from ./reg-test/input/abixy put -q 1220 for (k1, v1 in $*) { 1221 @output1[NR][k1] = "before"; 1222 @output1[NR][k1] = v1; 1223 for (k2, v2 in $*) { 1224 @output2[NR][k1."_".k2] = "before"; 1225 continue; 1226 @output2[NR][k1."_".k2] = v2; 1227 } 1228 } 1229 end { 1230 emit @output1, "NR", "name"; 1231 emit @output2, "NR", "names"; 1232 } 1233 1234NR name output1 12351 a pan 12361 b pan 12371 i 1 12381 x 0.3467901443380824 12391 y 0.7268028627434533 12402 a eks 12412 b pan 12422 i 2 12432 x 0.7586799647899636 12442 y 0.5221511083334797 12453 a wye 12463 b wye 12473 i 3 12483 x 0.20460330576630303 12493 y 0.33831852551664776 12504 a eks 12514 b wye 12524 i 4 12534 x 0.38139939387114097 12544 y 0.13418874328430463 12555 a wye 12565 b pan 12575 i 5 12585 x 0.5732889198020006 12595 y 0.8636244699032729 12606 a zee 12616 b pan 12626 i 6 12636 x 0.5271261600918548 12646 y 0.49322128674835697 12657 a eks 12667 b zee 12677 i 7 12687 x 0.6117840605678454 12697 y 0.1878849191181694 12708 a zee 12718 b wye 12728 i 8 12738 x 0.5985540091064224 12748 y 0.976181385699006 12759 a hat 12769 b wye 12779 i 9 12789 x 0.03144187646093577 12799 y 0.7495507603507059 128010 a pan 128110 b wye 128210 i 10 128310 x 0.5026260055412137 128410 y 0.9526183602969864 1285 1286NR names output2 12871 a_a before 12881 a_b before 12891 a_i before 12901 a_x before 12911 a_y before 12921 b_a before 12931 b_b before 12941 b_i before 12951 b_x before 12961 b_y before 12971 i_a before 12981 i_b before 12991 i_i before 13001 i_x before 13011 i_y before 13021 x_a before 13031 x_b before 13041 x_i before 13051 x_x before 13061 x_y before 13071 y_a before 13081 y_b before 13091 y_i before 13101 y_x before 13111 y_y before 13122 a_a before 13132 a_b before 13142 a_i before 13152 a_x before 13162 a_y before 13172 b_a before 13182 b_b before 13192 b_i before 13202 b_x before 13212 b_y before 13222 i_a before 13232 i_b before 13242 i_i before 13252 i_x before 13262 i_y before 13272 x_a before 13282 x_b before 13292 x_i before 13302 x_x before 13312 x_y before 13322 y_a before 13332 y_b before 13342 y_i before 13352 y_x before 13362 y_y before 13373 a_a before 13383 a_b before 13393 a_i before 13403 a_x before 13413 a_y before 13423 b_a before 13433 b_b before 13443 b_i before 13453 b_x before 13463 b_y before 13473 i_a before 13483 i_b before 13493 i_i before 13503 i_x before 13513 i_y before 13523 x_a before 13533 x_b before 13543 x_i before 13553 x_x before 13563 x_y before 13573 y_a before 13583 y_b before 13593 y_i before 13603 y_x before 13613 y_y before 13624 a_a before 13634 a_b before 13644 a_i before 13654 a_x before 13664 a_y before 13674 b_a before 13684 b_b before 13694 b_i before 13704 b_x before 13714 b_y before 13724 i_a before 13734 i_b before 13744 i_i before 13754 i_x before 13764 i_y before 13774 x_a before 13784 x_b before 13794 x_i before 13804 x_x before 13814 x_y before 13824 y_a before 13834 y_b before 13844 y_i before 13854 y_x before 13864 y_y before 13875 a_a before 13885 a_b before 13895 a_i before 13905 a_x before 13915 a_y before 13925 b_a before 13935 b_b before 13945 b_i before 13955 b_x before 13965 b_y before 13975 i_a before 13985 i_b before 13995 i_i before 14005 i_x before 14015 i_y before 14025 x_a before 14035 x_b before 14045 x_i before 14055 x_x before 14065 x_y before 14075 y_a before 14085 y_b before 14095 y_i before 14105 y_x before 14115 y_y before 14126 a_a before 14136 a_b before 14146 a_i before 14156 a_x before 14166 a_y before 14176 b_a before 14186 b_b before 14196 b_i before 14206 b_x before 14216 b_y before 14226 i_a before 14236 i_b before 14246 i_i before 14256 i_x before 14266 i_y before 14276 x_a before 14286 x_b before 14296 x_i before 14306 x_x before 14316 x_y before 14326 y_a before 14336 y_b before 14346 y_i before 14356 y_x before 14366 y_y before 14377 a_a before 14387 a_b before 14397 a_i before 14407 a_x before 14417 a_y before 14427 b_a before 14437 b_b before 14447 b_i before 14457 b_x before 14467 b_y before 14477 i_a before 14487 i_b before 14497 i_i before 14507 i_x before 14517 i_y before 14527 x_a before 14537 x_b before 14547 x_i before 14557 x_x before 14567 x_y before 14577 y_a before 14587 y_b before 14597 y_i before 14607 y_x before 14617 y_y before 14628 a_a before 14638 a_b before 14648 a_i before 14658 a_x before 14668 a_y before 14678 b_a before 14688 b_b before 14698 b_i before 14708 b_x before 14718 b_y before 14728 i_a before 14738 i_b before 14748 i_i before 14758 i_x before 14768 i_y before 14778 x_a before 14788 x_b before 14798 x_i before 14808 x_x before 14818 x_y before 14828 y_a before 14838 y_b before 14848 y_i before 14858 y_x before 14868 y_y before 14879 a_a before 14889 a_b before 14899 a_i before 14909 a_x before 14919 a_y before 14929 b_a before 14939 b_b before 14949 b_i before 14959 b_x before 14969 b_y before 14979 i_a before 14989 i_b before 14999 i_i before 15009 i_x before 15019 i_y before 15029 x_a before 15039 x_b before 15049 x_i before 15059 x_x before 15069 x_y before 15079 y_a before 15089 y_b before 15099 y_i before 15109 y_x before 15119 y_y before 151210 a_a before 151310 a_b before 151410 a_i before 151510 a_x before 151610 a_y before 151710 b_a before 151810 b_b before 151910 b_i before 152010 b_x before 152110 b_y before 152210 i_a before 152310 i_b before 152410 i_i before 152510 i_x before 152610 i_y before 152710 x_a before 152810 x_b before 152910 x_i before 153010 x_x before 153110 x_y before 153210 y_a before 153310 y_b before 153410 y_i before 153510 y_x before 153610 y_y before 1537 1538mlr --opprint --from ./reg-test/input/abixy put -q 1539 for (k1, v1 in $*) { 1540 @output1[NR][k1] = "before"; 1541 break; 1542 @output1[NR][k1] = v1; 1543 for (k2, v2 in $*) { 1544 @output2[NR][k1."_".k2] = "before"; 1545 break; 1546 @output2[NR][k1."_".k2] = v2; 1547 } 1548 } 1549 end { 1550 emit @output1, "NR", "name"; 1551 emit @output2, "NR", "names"; 1552 } 1553 1554NR name output1 15551 a before 15562 a before 15573 a before 15584 a before 15595 a before 15606 a before 15617 a before 15628 a before 15639 a before 156410 a before 1565 1566mlr --opprint --from ./reg-test/input/abixy put -q 1567 for (k1, v1 in $*) { 1568 @output1[NR][k1] = "before"; 1569 continue; 1570 @output1[NR][k1] = v1; 1571 for (k2, v2 in $*) { 1572 @output2[NR][k1."_".k2] = "before"; 1573 break; 1574 @output2[NR][k1."_".k2] = v2; 1575 } 1576 } 1577 end { 1578 emit @output1, "NR", "name"; 1579 emit @output2, "NR", "names"; 1580 } 1581 1582NR name output1 15831 a before 15841 b before 15851 i before 15861 x before 15871 y before 15882 a before 15892 b before 15902 i before 15912 x before 15922 y before 15933 a before 15943 b before 15953 i before 15963 x before 15973 y before 15984 a before 15994 b before 16004 i before 16014 x before 16024 y before 16035 a before 16045 b before 16055 i before 16065 x before 16075 y before 16086 a before 16096 b before 16106 i before 16116 x before 16126 y before 16137 a before 16147 b before 16157 i before 16167 x before 16177 y before 16188 a before 16198 b before 16208 i before 16218 x before 16228 y before 16239 a before 16249 b before 16259 i before 16269 x before 16279 y before 162810 a before 162910 b before 163010 i before 163110 x before 163210 y before 1633 1634mlr --opprint --from ./reg-test/input/abixy put -q 1635 for (k1, v1 in $*) { 1636 @output1[NR][k1] = "before"; 1637 break; 1638 @output1[NR][k1] = v1; 1639 for (k2, v2 in $*) { 1640 @output2[NR][k1."_".k2] = "before"; 1641 continue; 1642 @output2[NR][k1."_".k2] = v2; 1643 } 1644 } 1645 end { 1646 emit @output1, "NR", "name"; 1647 emit @output2, "NR", "names"; 1648 } 1649 1650NR name output1 16511 a before 16522 a before 16533 a before 16544 a before 16555 a before 16566 a before 16577 a before 16588 a before 16599 a before 166010 a before 1661 1662mlr --opprint --from ./reg-test/input/abixy put -q 1663 for (k1, v1 in $*) { 1664 @output1[NR][k1] = "before"; 1665 continue; 1666 @output1[NR][k1] = v1; 1667 for (k2, v2 in $*) { 1668 @output2[NR][k1."_".k2] = "before"; 1669 continue; 1670 @output2[NR][k1."_".k2] = v2; 1671 } 1672 } 1673 end { 1674 emit @output1, "NR", "name"; 1675 emit @output2, "NR", "names"; 1676 } 1677 1678NR name output1 16791 a before 16801 b before 16811 i before 16821 x before 16831 y before 16842 a before 16852 b before 16862 i before 16872 x before 16882 y before 16893 a before 16903 b before 16913 i before 16923 x before 16933 y before 16944 a before 16954 b before 16964 i before 16974 x before 16984 y before 16995 a before 17005 b before 17015 i before 17025 x before 17035 y before 17046 a before 17056 b before 17066 i before 17076 x before 17086 y before 17097 a before 17107 b before 17117 i before 17127 x before 17137 y before 17148 a before 17158 b before 17168 i before 17178 x before 17188 y before 17199 a before 17209 b before 17219 i before 17229 x before 17239 y before 172410 a before 172510 b before 172610 i before 172710 x before 172810 y before 1729 1730mlr --opprint --from ./reg-test/input/abixy put -q 1731 for (k1, v1 in $*) { 1732 @output1[NR][k1] = "before"; 1733 if (k1 == "b") { 1734 break 1735 } 1736 @output1[NR][k1] = v1; 1737 for (k2, v2 in $*) { 1738 @output2[NR][k1."_".k2] = "before"; 1739 @output2[NR][k1."_".k2] = v2; 1740 } 1741 } 1742 end { 1743 emit @output1, "NR", "name"; 1744 emit @output2, "NR", "names"; 1745 } 1746 1747NR name output1 17481 a pan 17491 b before 17502 a eks 17512 b before 17523 a wye 17533 b before 17544 a eks 17554 b before 17565 a wye 17575 b before 17586 a zee 17596 b before 17607 a eks 17617 b before 17628 a zee 17638 b before 17649 a hat 17659 b before 176610 a pan 176710 b before 1768 1769NR names output2 17701 a_a pan 17711 a_b pan 17721 a_i 1 17731 a_x 0.3467901443380824 17741 a_y 0.7268028627434533 17752 a_a eks 17762 a_b pan 17772 a_i 2 17782 a_x 0.7586799647899636 17792 a_y 0.5221511083334797 17803 a_a wye 17813 a_b wye 17823 a_i 3 17833 a_x 0.20460330576630303 17843 a_y 0.33831852551664776 17854 a_a eks 17864 a_b wye 17874 a_i 4 17884 a_x 0.38139939387114097 17894 a_y 0.13418874328430463 17905 a_a wye 17915 a_b pan 17925 a_i 5 17935 a_x 0.5732889198020006 17945 a_y 0.8636244699032729 17956 a_a zee 17966 a_b pan 17976 a_i 6 17986 a_x 0.5271261600918548 17996 a_y 0.49322128674835697 18007 a_a eks 18017 a_b zee 18027 a_i 7 18037 a_x 0.6117840605678454 18047 a_y 0.1878849191181694 18058 a_a zee 18068 a_b wye 18078 a_i 8 18088 a_x 0.5985540091064224 18098 a_y 0.976181385699006 18109 a_a hat 18119 a_b wye 18129 a_i 9 18139 a_x 0.03144187646093577 18149 a_y 0.7495507603507059 181510 a_a pan 181610 a_b wye 181710 a_i 10 181810 a_x 0.5026260055412137 181910 a_y 0.9526183602969864 1820 1821mlr --opprint --from ./reg-test/input/abixy put -q 1822 for (k1, v1 in $*) { 1823 @output1[NR][k1] = "before"; 1824 if (k1 == "b") { 1825 continue 1826 } 1827 @output1[NR][k1] = v1; 1828 for (k2, v2 in $*) { 1829 @output2[NR][k1."_".k2] = "before"; 1830 @output2[NR][k1."_".k2] = v2; 1831 } 1832 } 1833 end { 1834 emit @output1, "NR", "name"; 1835 emit @output2, "NR", "names"; 1836 } 1837 1838NR name output1 18391 a pan 18401 b before 18411 i 1 18421 x 0.3467901443380824 18431 y 0.7268028627434533 18442 a eks 18452 b before 18462 i 2 18472 x 0.7586799647899636 18482 y 0.5221511083334797 18493 a wye 18503 b before 18513 i 3 18523 x 0.20460330576630303 18533 y 0.33831852551664776 18544 a eks 18554 b before 18564 i 4 18574 x 0.38139939387114097 18584 y 0.13418874328430463 18595 a wye 18605 b before 18615 i 5 18625 x 0.5732889198020006 18635 y 0.8636244699032729 18646 a zee 18656 b before 18666 i 6 18676 x 0.5271261600918548 18686 y 0.49322128674835697 18697 a eks 18707 b before 18717 i 7 18727 x 0.6117840605678454 18737 y 0.1878849191181694 18748 a zee 18758 b before 18768 i 8 18778 x 0.5985540091064224 18788 y 0.976181385699006 18799 a hat 18809 b before 18819 i 9 18829 x 0.03144187646093577 18839 y 0.7495507603507059 188410 a pan 188510 b before 188610 i 10 188710 x 0.5026260055412137 188810 y 0.9526183602969864 1889 1890NR names output2 18911 a_a pan 18921 a_b pan 18931 a_i 1 18941 a_x 0.3467901443380824 18951 a_y 0.7268028627434533 18961 i_a pan 18971 i_b pan 18981 i_i 1 18991 i_x 0.3467901443380824 19001 i_y 0.7268028627434533 19011 x_a pan 19021 x_b pan 19031 x_i 1 19041 x_x 0.3467901443380824 19051 x_y 0.7268028627434533 19061 y_a pan 19071 y_b pan 19081 y_i 1 19091 y_x 0.3467901443380824 19101 y_y 0.7268028627434533 19112 a_a eks 19122 a_b pan 19132 a_i 2 19142 a_x 0.7586799647899636 19152 a_y 0.5221511083334797 19162 i_a eks 19172 i_b pan 19182 i_i 2 19192 i_x 0.7586799647899636 19202 i_y 0.5221511083334797 19212 x_a eks 19222 x_b pan 19232 x_i 2 19242 x_x 0.7586799647899636 19252 x_y 0.5221511083334797 19262 y_a eks 19272 y_b pan 19282 y_i 2 19292 y_x 0.7586799647899636 19302 y_y 0.5221511083334797 19313 a_a wye 19323 a_b wye 19333 a_i 3 19343 a_x 0.20460330576630303 19353 a_y 0.33831852551664776 19363 i_a wye 19373 i_b wye 19383 i_i 3 19393 i_x 0.20460330576630303 19403 i_y 0.33831852551664776 19413 x_a wye 19423 x_b wye 19433 x_i 3 19443 x_x 0.20460330576630303 19453 x_y 0.33831852551664776 19463 y_a wye 19473 y_b wye 19483 y_i 3 19493 y_x 0.20460330576630303 19503 y_y 0.33831852551664776 19514 a_a eks 19524 a_b wye 19534 a_i 4 19544 a_x 0.38139939387114097 19554 a_y 0.13418874328430463 19564 i_a eks 19574 i_b wye 19584 i_i 4 19594 i_x 0.38139939387114097 19604 i_y 0.13418874328430463 19614 x_a eks 19624 x_b wye 19634 x_i 4 19644 x_x 0.38139939387114097 19654 x_y 0.13418874328430463 19664 y_a eks 19674 y_b wye 19684 y_i 4 19694 y_x 0.38139939387114097 19704 y_y 0.13418874328430463 19715 a_a wye 19725 a_b pan 19735 a_i 5 19745 a_x 0.5732889198020006 19755 a_y 0.8636244699032729 19765 i_a wye 19775 i_b pan 19785 i_i 5 19795 i_x 0.5732889198020006 19805 i_y 0.8636244699032729 19815 x_a wye 19825 x_b pan 19835 x_i 5 19845 x_x 0.5732889198020006 19855 x_y 0.8636244699032729 19865 y_a wye 19875 y_b pan 19885 y_i 5 19895 y_x 0.5732889198020006 19905 y_y 0.8636244699032729 19916 a_a zee 19926 a_b pan 19936 a_i 6 19946 a_x 0.5271261600918548 19956 a_y 0.49322128674835697 19966 i_a zee 19976 i_b pan 19986 i_i 6 19996 i_x 0.5271261600918548 20006 i_y 0.49322128674835697 20016 x_a zee 20026 x_b pan 20036 x_i 6 20046 x_x 0.5271261600918548 20056 x_y 0.49322128674835697 20066 y_a zee 20076 y_b pan 20086 y_i 6 20096 y_x 0.5271261600918548 20106 y_y 0.49322128674835697 20117 a_a eks 20127 a_b zee 20137 a_i 7 20147 a_x 0.6117840605678454 20157 a_y 0.1878849191181694 20167 i_a eks 20177 i_b zee 20187 i_i 7 20197 i_x 0.6117840605678454 20207 i_y 0.1878849191181694 20217 x_a eks 20227 x_b zee 20237 x_i 7 20247 x_x 0.6117840605678454 20257 x_y 0.1878849191181694 20267 y_a eks 20277 y_b zee 20287 y_i 7 20297 y_x 0.6117840605678454 20307 y_y 0.1878849191181694 20318 a_a zee 20328 a_b wye 20338 a_i 8 20348 a_x 0.5985540091064224 20358 a_y 0.976181385699006 20368 i_a zee 20378 i_b wye 20388 i_i 8 20398 i_x 0.5985540091064224 20408 i_y 0.976181385699006 20418 x_a zee 20428 x_b wye 20438 x_i 8 20448 x_x 0.5985540091064224 20458 x_y 0.976181385699006 20468 y_a zee 20478 y_b wye 20488 y_i 8 20498 y_x 0.5985540091064224 20508 y_y 0.976181385699006 20519 a_a hat 20529 a_b wye 20539 a_i 9 20549 a_x 0.03144187646093577 20559 a_y 0.7495507603507059 20569 i_a hat 20579 i_b wye 20589 i_i 9 20599 i_x 0.03144187646093577 20609 i_y 0.7495507603507059 20619 x_a hat 20629 x_b wye 20639 x_i 9 20649 x_x 0.03144187646093577 20659 x_y 0.7495507603507059 20669 y_a hat 20679 y_b wye 20689 y_i 9 20699 y_x 0.03144187646093577 20709 y_y 0.7495507603507059 207110 a_a pan 207210 a_b wye 207310 a_i 10 207410 a_x 0.5026260055412137 207510 a_y 0.9526183602969864 207610 i_a pan 207710 i_b wye 207810 i_i 10 207910 i_x 0.5026260055412137 208010 i_y 0.9526183602969864 208110 x_a pan 208210 x_b wye 208310 x_i 10 208410 x_x 0.5026260055412137 208510 x_y 0.9526183602969864 208610 y_a pan 208710 y_b wye 208810 y_i 10 208910 y_x 0.5026260055412137 209010 y_y 0.9526183602969864 2091 2092mlr --opprint --from ./reg-test/input/abixy put -q 2093 for (k1, v1 in $*) { 2094 @output1[NR][k1] = "before"; 2095 @output1[NR][k1] = v1; 2096 for (k2, v2 in $*) { 2097 @output2[NR][k1."_".k2] = "before"; 2098 if (k2 == "a") { 2099 break 2100 } 2101 @output2[NR][k1."_".k2] = v2; 2102 } 2103 } 2104 end { 2105 emit @output1, "NR", "name"; 2106 emit @output2, "NR", "names"; 2107 } 2108 2109NR name output1 21101 a pan 21111 b pan 21121 i 1 21131 x 0.3467901443380824 21141 y 0.7268028627434533 21152 a eks 21162 b pan 21172 i 2 21182 x 0.7586799647899636 21192 y 0.5221511083334797 21203 a wye 21213 b wye 21223 i 3 21233 x 0.20460330576630303 21243 y 0.33831852551664776 21254 a eks 21264 b wye 21274 i 4 21284 x 0.38139939387114097 21294 y 0.13418874328430463 21305 a wye 21315 b pan 21325 i 5 21335 x 0.5732889198020006 21345 y 0.8636244699032729 21356 a zee 21366 b pan 21376 i 6 21386 x 0.5271261600918548 21396 y 0.49322128674835697 21407 a eks 21417 b zee 21427 i 7 21437 x 0.6117840605678454 21447 y 0.1878849191181694 21458 a zee 21468 b wye 21478 i 8 21488 x 0.5985540091064224 21498 y 0.976181385699006 21509 a hat 21519 b wye 21529 i 9 21539 x 0.03144187646093577 21549 y 0.7495507603507059 215510 a pan 215610 b wye 215710 i 10 215810 x 0.5026260055412137 215910 y 0.9526183602969864 2160 2161NR names output2 21621 a_a before 21631 b_a before 21641 i_a before 21651 x_a before 21661 y_a before 21672 a_a before 21682 b_a before 21692 i_a before 21702 x_a before 21712 y_a before 21723 a_a before 21733 b_a before 21743 i_a before 21753 x_a before 21763 y_a before 21774 a_a before 21784 b_a before 21794 i_a before 21804 x_a before 21814 y_a before 21825 a_a before 21835 b_a before 21845 i_a before 21855 x_a before 21865 y_a before 21876 a_a before 21886 b_a before 21896 i_a before 21906 x_a before 21916 y_a before 21927 a_a before 21937 b_a before 21947 i_a before 21957 x_a before 21967 y_a before 21978 a_a before 21988 b_a before 21998 i_a before 22008 x_a before 22018 y_a before 22029 a_a before 22039 b_a before 22049 i_a before 22059 x_a before 22069 y_a before 220710 a_a before 220810 b_a before 220910 i_a before 221010 x_a before 221110 y_a before 2212 2213mlr --opprint --from ./reg-test/input/abixy put -q 2214 for (k1, v1 in $*) { 2215 @output1[NR][k1] = "before"; 2216 @output1[NR][k1] = v1; 2217 for (k2, v2 in $*) { 2218 @output2[NR][k1."_".k2] = "before"; 2219 if (k2 == "b") { 2220 continue 2221 } 2222 @output2[NR][k1."_".k2] = v2; 2223 } 2224 } 2225 end { 2226 emit @output1, "NR", "name"; 2227 emit @output2, "NR", "names"; 2228 } 2229 2230NR name output1 22311 a pan 22321 b pan 22331 i 1 22341 x 0.3467901443380824 22351 y 0.7268028627434533 22362 a eks 22372 b pan 22382 i 2 22392 x 0.7586799647899636 22402 y 0.5221511083334797 22413 a wye 22423 b wye 22433 i 3 22443 x 0.20460330576630303 22453 y 0.33831852551664776 22464 a eks 22474 b wye 22484 i 4 22494 x 0.38139939387114097 22504 y 0.13418874328430463 22515 a wye 22525 b pan 22535 i 5 22545 x 0.5732889198020006 22555 y 0.8636244699032729 22566 a zee 22576 b pan 22586 i 6 22596 x 0.5271261600918548 22606 y 0.49322128674835697 22617 a eks 22627 b zee 22637 i 7 22647 x 0.6117840605678454 22657 y 0.1878849191181694 22668 a zee 22678 b wye 22688 i 8 22698 x 0.5985540091064224 22708 y 0.976181385699006 22719 a hat 22729 b wye 22739 i 9 22749 x 0.03144187646093577 22759 y 0.7495507603507059 227610 a pan 227710 b wye 227810 i 10 227910 x 0.5026260055412137 228010 y 0.9526183602969864 2281 2282NR names output2 22831 a_a pan 22841 a_b before 22851 a_i 1 22861 a_x 0.3467901443380824 22871 a_y 0.7268028627434533 22881 b_a pan 22891 b_b before 22901 b_i 1 22911 b_x 0.3467901443380824 22921 b_y 0.7268028627434533 22931 i_a pan 22941 i_b before 22951 i_i 1 22961 i_x 0.3467901443380824 22971 i_y 0.7268028627434533 22981 x_a pan 22991 x_b before 23001 x_i 1 23011 x_x 0.3467901443380824 23021 x_y 0.7268028627434533 23031 y_a pan 23041 y_b before 23051 y_i 1 23061 y_x 0.3467901443380824 23071 y_y 0.7268028627434533 23082 a_a eks 23092 a_b before 23102 a_i 2 23112 a_x 0.7586799647899636 23122 a_y 0.5221511083334797 23132 b_a eks 23142 b_b before 23152 b_i 2 23162 b_x 0.7586799647899636 23172 b_y 0.5221511083334797 23182 i_a eks 23192 i_b before 23202 i_i 2 23212 i_x 0.7586799647899636 23222 i_y 0.5221511083334797 23232 x_a eks 23242 x_b before 23252 x_i 2 23262 x_x 0.7586799647899636 23272 x_y 0.5221511083334797 23282 y_a eks 23292 y_b before 23302 y_i 2 23312 y_x 0.7586799647899636 23322 y_y 0.5221511083334797 23333 a_a wye 23343 a_b before 23353 a_i 3 23363 a_x 0.20460330576630303 23373 a_y 0.33831852551664776 23383 b_a wye 23393 b_b before 23403 b_i 3 23413 b_x 0.20460330576630303 23423 b_y 0.33831852551664776 23433 i_a wye 23443 i_b before 23453 i_i 3 23463 i_x 0.20460330576630303 23473 i_y 0.33831852551664776 23483 x_a wye 23493 x_b before 23503 x_i 3 23513 x_x 0.20460330576630303 23523 x_y 0.33831852551664776 23533 y_a wye 23543 y_b before 23553 y_i 3 23563 y_x 0.20460330576630303 23573 y_y 0.33831852551664776 23584 a_a eks 23594 a_b before 23604 a_i 4 23614 a_x 0.38139939387114097 23624 a_y 0.13418874328430463 23634 b_a eks 23644 b_b before 23654 b_i 4 23664 b_x 0.38139939387114097 23674 b_y 0.13418874328430463 23684 i_a eks 23694 i_b before 23704 i_i 4 23714 i_x 0.38139939387114097 23724 i_y 0.13418874328430463 23734 x_a eks 23744 x_b before 23754 x_i 4 23764 x_x 0.38139939387114097 23774 x_y 0.13418874328430463 23784 y_a eks 23794 y_b before 23804 y_i 4 23814 y_x 0.38139939387114097 23824 y_y 0.13418874328430463 23835 a_a wye 23845 a_b before 23855 a_i 5 23865 a_x 0.5732889198020006 23875 a_y 0.8636244699032729 23885 b_a wye 23895 b_b before 23905 b_i 5 23915 b_x 0.5732889198020006 23925 b_y 0.8636244699032729 23935 i_a wye 23945 i_b before 23955 i_i 5 23965 i_x 0.5732889198020006 23975 i_y 0.8636244699032729 23985 x_a wye 23995 x_b before 24005 x_i 5 24015 x_x 0.5732889198020006 24025 x_y 0.8636244699032729 24035 y_a wye 24045 y_b before 24055 y_i 5 24065 y_x 0.5732889198020006 24075 y_y 0.8636244699032729 24086 a_a zee 24096 a_b before 24106 a_i 6 24116 a_x 0.5271261600918548 24126 a_y 0.49322128674835697 24136 b_a zee 24146 b_b before 24156 b_i 6 24166 b_x 0.5271261600918548 24176 b_y 0.49322128674835697 24186 i_a zee 24196 i_b before 24206 i_i 6 24216 i_x 0.5271261600918548 24226 i_y 0.49322128674835697 24236 x_a zee 24246 x_b before 24256 x_i 6 24266 x_x 0.5271261600918548 24276 x_y 0.49322128674835697 24286 y_a zee 24296 y_b before 24306 y_i 6 24316 y_x 0.5271261600918548 24326 y_y 0.49322128674835697 24337 a_a eks 24347 a_b before 24357 a_i 7 24367 a_x 0.6117840605678454 24377 a_y 0.1878849191181694 24387 b_a eks 24397 b_b before 24407 b_i 7 24417 b_x 0.6117840605678454 24427 b_y 0.1878849191181694 24437 i_a eks 24447 i_b before 24457 i_i 7 24467 i_x 0.6117840605678454 24477 i_y 0.1878849191181694 24487 x_a eks 24497 x_b before 24507 x_i 7 24517 x_x 0.6117840605678454 24527 x_y 0.1878849191181694 24537 y_a eks 24547 y_b before 24557 y_i 7 24567 y_x 0.6117840605678454 24577 y_y 0.1878849191181694 24588 a_a zee 24598 a_b before 24608 a_i 8 24618 a_x 0.5985540091064224 24628 a_y 0.976181385699006 24638 b_a zee 24648 b_b before 24658 b_i 8 24668 b_x 0.5985540091064224 24678 b_y 0.976181385699006 24688 i_a zee 24698 i_b before 24708 i_i 8 24718 i_x 0.5985540091064224 24728 i_y 0.976181385699006 24738 x_a zee 24748 x_b before 24758 x_i 8 24768 x_x 0.5985540091064224 24778 x_y 0.976181385699006 24788 y_a zee 24798 y_b before 24808 y_i 8 24818 y_x 0.5985540091064224 24828 y_y 0.976181385699006 24839 a_a hat 24849 a_b before 24859 a_i 9 24869 a_x 0.03144187646093577 24879 a_y 0.7495507603507059 24889 b_a hat 24899 b_b before 24909 b_i 9 24919 b_x 0.03144187646093577 24929 b_y 0.7495507603507059 24939 i_a hat 24949 i_b before 24959 i_i 9 24969 i_x 0.03144187646093577 24979 i_y 0.7495507603507059 24989 x_a hat 24999 x_b before 25009 x_i 9 25019 x_x 0.03144187646093577 25029 x_y 0.7495507603507059 25039 y_a hat 25049 y_b before 25059 y_i 9 25069 y_x 0.03144187646093577 25079 y_y 0.7495507603507059 250810 a_a pan 250910 a_b before 251010 a_i 10 251110 a_x 0.5026260055412137 251210 a_y 0.9526183602969864 251310 b_a pan 251410 b_b before 251510 b_i 10 251610 b_x 0.5026260055412137 251710 b_y 0.9526183602969864 251810 i_a pan 251910 i_b before 252010 i_i 10 252110 i_x 0.5026260055412137 252210 i_y 0.9526183602969864 252310 x_a pan 252410 x_b before 252510 x_i 10 252610 x_x 0.5026260055412137 252710 x_y 0.9526183602969864 252810 y_a pan 252910 y_b before 253010 y_i 10 253110 y_x 0.5026260055412137 253210 y_y 0.9526183602969864 2533 2534mlr --opprint --from ./reg-test/input/abixy put -q 2535 for (k1, v1 in $*) { 2536 @output1[NR][k1] = "before"; 2537 if (k1 == "b") { 2538 break 2539 } 2540 @output1[NR][k1] = v1; 2541 for (k2, v2 in $*) { 2542 @output2[NR][k1."_".k2] = "before"; 2543 if (k2 == "a") { 2544 break 2545 } 2546 @output2[NR][k1."_".k2] = v2; 2547 } 2548 } 2549 end { 2550 emit @output1, "NR", "name"; 2551 emit @output2, "NR", "names"; 2552 } 2553 2554NR name output1 25551 a pan 25561 b before 25572 a eks 25582 b before 25593 a wye 25603 b before 25614 a eks 25624 b before 25635 a wye 25645 b before 25656 a zee 25666 b before 25677 a eks 25687 b before 25698 a zee 25708 b before 25719 a hat 25729 b before 257310 a pan 257410 b before 2575 2576NR names output2 25771 a_a before 25782 a_a before 25793 a_a before 25804 a_a before 25815 a_a before 25826 a_a before 25837 a_a before 25848 a_a before 25859 a_a before 258610 a_a before 2587 2588mlr --opprint --from ./reg-test/input/abixy put -q 2589 for (k1, v1 in $*) { 2590 @output1[NR][k1] = "before"; 2591 if (k1 == "b") { 2592 continue 2593 } 2594 @output1[NR][k1] = v1; 2595 for (k2, v2 in $*) { 2596 @output2[NR][k1."_".k2] = "before"; 2597 if (k2 == "a") { 2598 break 2599 } 2600 @output2[NR][k1."_".k2] = v2; 2601 } 2602 } 2603 end { 2604 emit @output1, "NR", "name"; 2605 emit @output2, "NR", "names"; 2606 } 2607 2608NR name output1 26091 a pan 26101 b before 26111 i 1 26121 x 0.3467901443380824 26131 y 0.7268028627434533 26142 a eks 26152 b before 26162 i 2 26172 x 0.7586799647899636 26182 y 0.5221511083334797 26193 a wye 26203 b before 26213 i 3 26223 x 0.20460330576630303 26233 y 0.33831852551664776 26244 a eks 26254 b before 26264 i 4 26274 x 0.38139939387114097 26284 y 0.13418874328430463 26295 a wye 26305 b before 26315 i 5 26325 x 0.5732889198020006 26335 y 0.8636244699032729 26346 a zee 26356 b before 26366 i 6 26376 x 0.5271261600918548 26386 y 0.49322128674835697 26397 a eks 26407 b before 26417 i 7 26427 x 0.6117840605678454 26437 y 0.1878849191181694 26448 a zee 26458 b before 26468 i 8 26478 x 0.5985540091064224 26488 y 0.976181385699006 26499 a hat 26509 b before 26519 i 9 26529 x 0.03144187646093577 26539 y 0.7495507603507059 265410 a pan 265510 b before 265610 i 10 265710 x 0.5026260055412137 265810 y 0.9526183602969864 2659 2660NR names output2 26611 a_a before 26621 i_a before 26631 x_a before 26641 y_a before 26652 a_a before 26662 i_a before 26672 x_a before 26682 y_a before 26693 a_a before 26703 i_a before 26713 x_a before 26723 y_a before 26734 a_a before 26744 i_a before 26754 x_a before 26764 y_a before 26775 a_a before 26785 i_a before 26795 x_a before 26805 y_a before 26816 a_a before 26826 i_a before 26836 x_a before 26846 y_a before 26857 a_a before 26867 i_a before 26877 x_a before 26887 y_a before 26898 a_a before 26908 i_a before 26918 x_a before 26928 y_a before 26939 a_a before 26949 i_a before 26959 x_a before 26969 y_a before 269710 a_a before 269810 i_a before 269910 x_a before 270010 y_a before 2701 2702mlr --opprint --from ./reg-test/input/abixy put -q 2703 for (k1, v1 in $*) { 2704 @output1[NR][k1] = "before"; 2705 if (k1 == "b") { 2706 break 2707 } 2708 @output1[NR][k1] = v1; 2709 for (k2, v2 in $*) { 2710 @output2[NR][k1."_".k2] = "before"; 2711 if (k2 == "a") { 2712 continue 2713 } 2714 @output2[NR][k1."_".k2] = v2; 2715 } 2716 } 2717 end { 2718 emit @output1, "NR", "name"; 2719 emit @output2, "NR", "names"; 2720 } 2721 2722NR name output1 27231 a pan 27241 b before 27252 a eks 27262 b before 27273 a wye 27283 b before 27294 a eks 27304 b before 27315 a wye 27325 b before 27336 a zee 27346 b before 27357 a eks 27367 b before 27378 a zee 27388 b before 27399 a hat 27409 b before 274110 a pan 274210 b before 2743 2744NR names output2 27451 a_a before 27461 a_b pan 27471 a_i 1 27481 a_x 0.3467901443380824 27491 a_y 0.7268028627434533 27502 a_a before 27512 a_b pan 27522 a_i 2 27532 a_x 0.7586799647899636 27542 a_y 0.5221511083334797 27553 a_a before 27563 a_b wye 27573 a_i 3 27583 a_x 0.20460330576630303 27593 a_y 0.33831852551664776 27604 a_a before 27614 a_b wye 27624 a_i 4 27634 a_x 0.38139939387114097 27644 a_y 0.13418874328430463 27655 a_a before 27665 a_b pan 27675 a_i 5 27685 a_x 0.5732889198020006 27695 a_y 0.8636244699032729 27706 a_a before 27716 a_b pan 27726 a_i 6 27736 a_x 0.5271261600918548 27746 a_y 0.49322128674835697 27757 a_a before 27767 a_b zee 27777 a_i 7 27787 a_x 0.6117840605678454 27797 a_y 0.1878849191181694 27808 a_a before 27818 a_b wye 27828 a_i 8 27838 a_x 0.5985540091064224 27848 a_y 0.976181385699006 27859 a_a before 27869 a_b wye 27879 a_i 9 27889 a_x 0.03144187646093577 27899 a_y 0.7495507603507059 279010 a_a before 279110 a_b wye 279210 a_i 10 279310 a_x 0.5026260055412137 279410 a_y 0.9526183602969864 2795 2796mlr --opprint --from ./reg-test/input/abixy put -q 2797 for (k1, v1 in $*) { 2798 @output1[NR][k1] = "before"; 2799 if (k1 == "b") { 2800 continue 2801 } 2802 @output1[NR][k1] = v1; 2803 for (k2, v2 in $*) { 2804 @output2[NR][k1."_".k2] = "before"; 2805 if (k2 == "a") { 2806 continue 2807 } 2808 @output2[NR][k1."_".k2] = v2; 2809 } 2810 } 2811 end { 2812 emit @output1, "NR", "name"; 2813 emit @output2, "NR", "names"; 2814 } 2815 2816NR name output1 28171 a pan 28181 b before 28191 i 1 28201 x 0.3467901443380824 28211 y 0.7268028627434533 28222 a eks 28232 b before 28242 i 2 28252 x 0.7586799647899636 28262 y 0.5221511083334797 28273 a wye 28283 b before 28293 i 3 28303 x 0.20460330576630303 28313 y 0.33831852551664776 28324 a eks 28334 b before 28344 i 4 28354 x 0.38139939387114097 28364 y 0.13418874328430463 28375 a wye 28385 b before 28395 i 5 28405 x 0.5732889198020006 28415 y 0.8636244699032729 28426 a zee 28436 b before 28446 i 6 28456 x 0.5271261600918548 28466 y 0.49322128674835697 28477 a eks 28487 b before 28497 i 7 28507 x 0.6117840605678454 28517 y 0.1878849191181694 28528 a zee 28538 b before 28548 i 8 28558 x 0.5985540091064224 28568 y 0.976181385699006 28579 a hat 28589 b before 28599 i 9 28609 x 0.03144187646093577 28619 y 0.7495507603507059 286210 a pan 286310 b before 286410 i 10 286510 x 0.5026260055412137 286610 y 0.9526183602969864 2867 2868NR names output2 28691 a_a before 28701 a_b pan 28711 a_i 1 28721 a_x 0.3467901443380824 28731 a_y 0.7268028627434533 28741 i_a before 28751 i_b pan 28761 i_i 1 28771 i_x 0.3467901443380824 28781 i_y 0.7268028627434533 28791 x_a before 28801 x_b pan 28811 x_i 1 28821 x_x 0.3467901443380824 28831 x_y 0.7268028627434533 28841 y_a before 28851 y_b pan 28861 y_i 1 28871 y_x 0.3467901443380824 28881 y_y 0.7268028627434533 28892 a_a before 28902 a_b pan 28912 a_i 2 28922 a_x 0.7586799647899636 28932 a_y 0.5221511083334797 28942 i_a before 28952 i_b pan 28962 i_i 2 28972 i_x 0.7586799647899636 28982 i_y 0.5221511083334797 28992 x_a before 29002 x_b pan 29012 x_i 2 29022 x_x 0.7586799647899636 29032 x_y 0.5221511083334797 29042 y_a before 29052 y_b pan 29062 y_i 2 29072 y_x 0.7586799647899636 29082 y_y 0.5221511083334797 29093 a_a before 29103 a_b wye 29113 a_i 3 29123 a_x 0.20460330576630303 29133 a_y 0.33831852551664776 29143 i_a before 29153 i_b wye 29163 i_i 3 29173 i_x 0.20460330576630303 29183 i_y 0.33831852551664776 29193 x_a before 29203 x_b wye 29213 x_i 3 29223 x_x 0.20460330576630303 29233 x_y 0.33831852551664776 29243 y_a before 29253 y_b wye 29263 y_i 3 29273 y_x 0.20460330576630303 29283 y_y 0.33831852551664776 29294 a_a before 29304 a_b wye 29314 a_i 4 29324 a_x 0.38139939387114097 29334 a_y 0.13418874328430463 29344 i_a before 29354 i_b wye 29364 i_i 4 29374 i_x 0.38139939387114097 29384 i_y 0.13418874328430463 29394 x_a before 29404 x_b wye 29414 x_i 4 29424 x_x 0.38139939387114097 29434 x_y 0.13418874328430463 29444 y_a before 29454 y_b wye 29464 y_i 4 29474 y_x 0.38139939387114097 29484 y_y 0.13418874328430463 29495 a_a before 29505 a_b pan 29515 a_i 5 29525 a_x 0.5732889198020006 29535 a_y 0.8636244699032729 29545 i_a before 29555 i_b pan 29565 i_i 5 29575 i_x 0.5732889198020006 29585 i_y 0.8636244699032729 29595 x_a before 29605 x_b pan 29615 x_i 5 29625 x_x 0.5732889198020006 29635 x_y 0.8636244699032729 29645 y_a before 29655 y_b pan 29665 y_i 5 29675 y_x 0.5732889198020006 29685 y_y 0.8636244699032729 29696 a_a before 29706 a_b pan 29716 a_i 6 29726 a_x 0.5271261600918548 29736 a_y 0.49322128674835697 29746 i_a before 29756 i_b pan 29766 i_i 6 29776 i_x 0.5271261600918548 29786 i_y 0.49322128674835697 29796 x_a before 29806 x_b pan 29816 x_i 6 29826 x_x 0.5271261600918548 29836 x_y 0.49322128674835697 29846 y_a before 29856 y_b pan 29866 y_i 6 29876 y_x 0.5271261600918548 29886 y_y 0.49322128674835697 29897 a_a before 29907 a_b zee 29917 a_i 7 29927 a_x 0.6117840605678454 29937 a_y 0.1878849191181694 29947 i_a before 29957 i_b zee 29967 i_i 7 29977 i_x 0.6117840605678454 29987 i_y 0.1878849191181694 29997 x_a before 30007 x_b zee 30017 x_i 7 30027 x_x 0.6117840605678454 30037 x_y 0.1878849191181694 30047 y_a before 30057 y_b zee 30067 y_i 7 30077 y_x 0.6117840605678454 30087 y_y 0.1878849191181694 30098 a_a before 30108 a_b wye 30118 a_i 8 30128 a_x 0.5985540091064224 30138 a_y 0.976181385699006 30148 i_a before 30158 i_b wye 30168 i_i 8 30178 i_x 0.5985540091064224 30188 i_y 0.976181385699006 30198 x_a before 30208 x_b wye 30218 x_i 8 30228 x_x 0.5985540091064224 30238 x_y 0.976181385699006 30248 y_a before 30258 y_b wye 30268 y_i 8 30278 y_x 0.5985540091064224 30288 y_y 0.976181385699006 30299 a_a before 30309 a_b wye 30319 a_i 9 30329 a_x 0.03144187646093577 30339 a_y 0.7495507603507059 30349 i_a before 30359 i_b wye 30369 i_i 9 30379 i_x 0.03144187646093577 30389 i_y 0.7495507603507059 30399 x_a before 30409 x_b wye 30419 x_i 9 30429 x_x 0.03144187646093577 30439 x_y 0.7495507603507059 30449 y_a before 30459 y_b wye 30469 y_i 9 30479 y_x 0.03144187646093577 30489 y_y 0.7495507603507059 304910 a_a before 305010 a_b wye 305110 a_i 10 305210 a_x 0.5026260055412137 305310 a_y 0.9526183602969864 305410 i_a before 305510 i_b wye 305610 i_i 10 305710 i_x 0.5026260055412137 305810 i_y 0.9526183602969864 305910 x_a before 306010 x_b wye 306110 x_i 10 306210 x_x 0.5026260055412137 306310 x_y 0.9526183602969864 306410 y_a before 306510 y_b wye 306610 y_i 10 306710 y_x 0.5026260055412137 306810 y_y 0.9526183602969864 3069 3070 3071================================================================ 3072DSL BREAK/CONTINUE IN SINGLE FOR-OOSVAR 3073 3074 3075---------------------------------------------------------------- single-key tests, direct break/continue 3076mlr --opprint --from ./reg-test/input/abixy put -q 3077 @logging[NR] = $*; 3078 end { 3079 for (k1, v in @logging[2]) { 3080 break; 3081 @output[k1] = v; 3082 } 3083 emit @output, "NR", "name" 3084 } 3085 3086 3087mlr --opprint --from ./reg-test/input/abixy put -q 3088 @logging[NR] = $*; 3089 end { 3090 for (k1, v in @logging[2]) { 3091 @output[k1] = v; 3092 break; 3093 @output[k1] = "ERROR"; 3094 } 3095 emit @output, "NR", "name" 3096 } 3097 3098NR output 3099a eks 3100 3101mlr --opprint --from ./reg-test/input/abixy put -q 3102 @logging[NR] = $*; 3103 end { 3104 for (k1, v in @logging[2]) { 3105 continue; 3106 @output[k1] = v 3107 } 3108 emit @output, "NR", "name" 3109 } 3110 3111 3112mlr --opprint --from ./reg-test/input/abixy put -q 3113 @logging[NR] = $*; 3114 end { 3115 for (k1, v in @logging[2]) { 3116 @output[k1] = v; 3117 continue; 3118 @output[k1] = "ERROR"; 3119 } 3120 emit @output, "NR", "name" 3121 } 3122 3123NR output 3124a eks 3125b pan 3126i 2 3127x 0.7586799647899636 3128y 0.5221511083334797 3129 3130 3131---------------------------------------------------------------- single-key tests, indirect break/continue 3132mlr --opprint --from ./reg-test/input/abixy put -q 3133 @logging[NR] = $*; 3134 end { 3135 for (k1, v in @logging[2]) { 3136 if (k1 == "i") { 3137 break; 3138 } 3139 @output[k1] = v; 3140 } 3141 emit @output, "NR", "name" 3142 } 3143 3144NR output 3145a eks 3146b pan 3147 3148mlr --opprint --from ./reg-test/input/abixy put -q 3149 @logging[NR] = $*; 3150 end { 3151 for (k1, v in @logging[2]) { 3152 @output[k1] = v; 3153 if (k1 == "i") { 3154 break; 3155 } 3156 } 3157 emit @output, "NR", "name" 3158 } 3159 3160NR output 3161a eks 3162b pan 3163i 2 3164 3165mlr --opprint --from ./reg-test/input/abixy put -q 3166 @logging[NR] = $*; 3167 end { 3168 for (k1, v in @logging[2]) { 3169 if (k1 == "i") { 3170 continue; 3171 } 3172 @output[k1] = v 3173 } 3174 emit @output, "NR", "name" 3175 } 3176 3177NR output 3178a eks 3179b pan 3180x 0.7586799647899636 3181y 0.5221511083334797 3182 3183mlr --opprint --from ./reg-test/input/abixy put -q 3184 @logging[NR] = $*; 3185 end { 3186 for (k1, v in @logging[2]) { 3187 @output[k1] = v; 3188 if (k1 == "i") { 3189 continue; 3190 } 3191 @output[k1] = "reached"; 3192 } 3193 emit @output, "NR", "name" 3194 } 3195 3196NR output 3197a reached 3198b reached 3199i 2 3200x reached 3201y reached 3202 3203 3204---------------------------------------------------------------- multiple-key tests, direct break/continue 3205mlr --opprint --from ./reg-test/input/abixy put -q 3206 @logging[NR] = $*; 3207 end { 3208 for ((k1, k2), v in @logging) { 3209 break; 3210 @output[k1][k2] = v; 3211 } 3212 emit @output, "NR", "name" 3213 } 3214 3215 3216mlr --opprint --from ./reg-test/input/abixy put -q 3217 @logging[NR] = $*; 3218 end { 3219 for ((k1, k2), v in @logging) { 3220 @output[k1][k2] = v; 3221 break; 3222 @output[k1][k2] = "ERROR" 3223 } 3224 emit @output, "NR", "name" 3225 } 3226 3227NR name output 32281 a pan 3229 3230mlr --opprint --from ./reg-test/input/abixy put -q 3231 @logging[NR] = $*; 3232 end { 3233 for ((k1, k2), v in @logging) { 3234 continue; 3235 @output[k1][k2] = v 3236 } 3237 emit @output, "NR", "name" 3238 } 3239 3240 3241mlr --opprint --from ./reg-test/input/abixy put -q 3242 @logging[NR] = $*; 3243 end { 3244 for ((k1, k2), v in @logging) { 3245 @output[k1][k2] = v; 3246 continue; 3247 @output[k1][k2] = "ERROR"; 3248 } 3249 emit @output, "NR", "name" 3250 } 3251 3252NR name output 32531 a pan 32541 b pan 32551 i 1 32561 x 0.3467901443380824 32571 y 0.7268028627434533 32582 a eks 32592 b pan 32602 i 2 32612 x 0.7586799647899636 32622 y 0.5221511083334797 32633 a wye 32643 b wye 32653 i 3 32663 x 0.20460330576630303 32673 y 0.33831852551664776 32684 a eks 32694 b wye 32704 i 4 32714 x 0.38139939387114097 32724 y 0.13418874328430463 32735 a wye 32745 b pan 32755 i 5 32765 x 0.5732889198020006 32775 y 0.8636244699032729 32786 a zee 32796 b pan 32806 i 6 32816 x 0.5271261600918548 32826 y 0.49322128674835697 32837 a eks 32847 b zee 32857 i 7 32867 x 0.6117840605678454 32877 y 0.1878849191181694 32888 a zee 32898 b wye 32908 i 8 32918 x 0.5985540091064224 32928 y 0.976181385699006 32939 a hat 32949 b wye 32959 i 9 32969 x 0.03144187646093577 32979 y 0.7495507603507059 329810 a pan 329910 b wye 330010 i 10 330110 x 0.5026260055412137 330210 y 0.9526183602969864 3303 3304 3305---------------------------------------------------------------- multiple-key tests, indirect break/continue 3306mlr --opprint --from ./reg-test/input/abixy put -q 3307 @logging[NR] = $*; 3308 end { 3309 for ((k1, k2), v in @logging) { 3310 if (k1 == 5) { 3311 break; 3312 } 3313 @output[k1][k2] = v; 3314 } 3315 emit @output, "NR", "name" 3316 } 3317 3318NR name output 33191 a pan 33201 b pan 33211 i 1 33221 x 0.3467901443380824 33231 y 0.7268028627434533 33242 a eks 33252 b pan 33262 i 2 33272 x 0.7586799647899636 33282 y 0.5221511083334797 33293 a wye 33303 b wye 33313 i 3 33323 x 0.20460330576630303 33333 y 0.33831852551664776 33344 a eks 33354 b wye 33364 i 4 33374 x 0.38139939387114097 33384 y 0.13418874328430463 3339 3340mlr --opprint --from ./reg-test/input/abixy put -q 3341 @logging[NR] = $*; 3342 end { 3343 for ((k1, k2), v in @logging) { 3344 if (k2 == "i") { 3345 break; 3346 } 3347 @output[k1][k2] = v; 3348 } 3349 emit @output, "NR", "name" 3350 } 3351 3352NR name output 33531 a pan 33541 b pan 3355 3356mlr --opprint --from ./reg-test/input/abixy put -q 3357 @logging[NR] = $*; 3358 end { 3359 for ((k1, k2), v in @logging) { 3360 @output[k1][k2] = v; 3361 if (k1 == 5) { 3362 break; 3363 } 3364 } 3365 emit @output, "NR", "name" 3366 } 3367 3368NR name output 33691 a pan 33701 b pan 33711 i 1 33721 x 0.3467901443380824 33731 y 0.7268028627434533 33742 a eks 33752 b pan 33762 i 2 33772 x 0.7586799647899636 33782 y 0.5221511083334797 33793 a wye 33803 b wye 33813 i 3 33823 x 0.20460330576630303 33833 y 0.33831852551664776 33844 a eks 33854 b wye 33864 i 4 33874 x 0.38139939387114097 33884 y 0.13418874328430463 33895 a wye 3390 3391mlr --opprint --from ./reg-test/input/abixy put -q 3392 @logging[NR] = $*; 3393 end { 3394 for ((k1, k2), v in @logging) { 3395 @output[k1][k2] = v; 3396 if (k2 == "i") { 3397 break; 3398 } 3399 } 3400 emit @output, "NR", "name" 3401 } 3402 3403NR name output 34041 a pan 34051 b pan 34061 i 1 3407 3408mlr --opprint --from ./reg-test/input/abixy put -q 3409 @logging[NR] = $*; 3410 end { 3411 for ((k1, k2), v in @logging) { 3412 if (k1 == 5) { 3413 continue; 3414 } 3415 @output[k1][k2] = v 3416 } 3417 emit @output, "NR", "name" 3418 } 3419 3420NR name output 34211 a pan 34221 b pan 34231 i 1 34241 x 0.3467901443380824 34251 y 0.7268028627434533 34262 a eks 34272 b pan 34282 i 2 34292 x 0.7586799647899636 34302 y 0.5221511083334797 34313 a wye 34323 b wye 34333 i 3 34343 x 0.20460330576630303 34353 y 0.33831852551664776 34364 a eks 34374 b wye 34384 i 4 34394 x 0.38139939387114097 34404 y 0.13418874328430463 34416 a zee 34426 b pan 34436 i 6 34446 x 0.5271261600918548 34456 y 0.49322128674835697 34467 a eks 34477 b zee 34487 i 7 34497 x 0.6117840605678454 34507 y 0.1878849191181694 34518 a zee 34528 b wye 34538 i 8 34548 x 0.5985540091064224 34558 y 0.976181385699006 34569 a hat 34579 b wye 34589 i 9 34599 x 0.03144187646093577 34609 y 0.7495507603507059 346110 a pan 346210 b wye 346310 i 10 346410 x 0.5026260055412137 346510 y 0.9526183602969864 3466 3467mlr --opprint --from ./reg-test/input/abixy put -q 3468 @logging[NR] = $*; 3469 end { 3470 for ((k1, k2), v in @logging) { 3471 if (k2 == "i") { 3472 continue; 3473 } 3474 @output[k1][k2] = v 3475 } 3476 emit @output, "NR", "name" 3477 } 3478 3479NR name output 34801 a pan 34811 b pan 34821 x 0.3467901443380824 34831 y 0.7268028627434533 34842 a eks 34852 b pan 34862 x 0.7586799647899636 34872 y 0.5221511083334797 34883 a wye 34893 b wye 34903 x 0.20460330576630303 34913 y 0.33831852551664776 34924 a eks 34934 b wye 34944 x 0.38139939387114097 34954 y 0.13418874328430463 34965 a wye 34975 b pan 34985 x 0.5732889198020006 34995 y 0.8636244699032729 35006 a zee 35016 b pan 35026 x 0.5271261600918548 35036 y 0.49322128674835697 35047 a eks 35057 b zee 35067 x 0.6117840605678454 35077 y 0.1878849191181694 35088 a zee 35098 b wye 35108 x 0.5985540091064224 35118 y 0.976181385699006 35129 a hat 35139 b wye 35149 x 0.03144187646093577 35159 y 0.7495507603507059 351610 a pan 351710 b wye 351810 x 0.5026260055412137 351910 y 0.9526183602969864 3520 3521mlr --opprint --from ./reg-test/input/abixy put -q 3522 @logging[NR] = $*; 3523 end { 3524 for ((k1, k2), v in @logging) { 3525 @output[k1][k2] = "before"; 3526 if (k1 == 5) { 3527 continue; 3528 } 3529 @output[k1][k2] = v; 3530 } 3531 emit @output, "NR", "name" 3532 } 3533 3534NR name output 35351 a pan 35361 b pan 35371 i 1 35381 x 0.3467901443380824 35391 y 0.7268028627434533 35402 a eks 35412 b pan 35422 i 2 35432 x 0.7586799647899636 35442 y 0.5221511083334797 35453 a wye 35463 b wye 35473 i 3 35483 x 0.20460330576630303 35493 y 0.33831852551664776 35504 a eks 35514 b wye 35524 i 4 35534 x 0.38139939387114097 35544 y 0.13418874328430463 35555 a before 35565 b before 35575 i before 35585 x before 35595 y before 35606 a zee 35616 b pan 35626 i 6 35636 x 0.5271261600918548 35646 y 0.49322128674835697 35657 a eks 35667 b zee 35677 i 7 35687 x 0.6117840605678454 35697 y 0.1878849191181694 35708 a zee 35718 b wye 35728 i 8 35738 x 0.5985540091064224 35748 y 0.976181385699006 35759 a hat 35769 b wye 35779 i 9 35789 x 0.03144187646093577 35799 y 0.7495507603507059 358010 a pan 358110 b wye 358210 i 10 358310 x 0.5026260055412137 358410 y 0.9526183602969864 3585 3586mlr --opprint --from ./reg-test/input/abixy put -q 3587 @logging[NR] = $*; 3588 end { 3589 for ((k1, k2), v in @logging) { 3590 @output[k1][k2] = "before"; 3591 if (k2 == "i") { 3592 continue; 3593 } 3594 @output[k1][k2] = v; 3595 } 3596 emit @output, "NR", "name" 3597 } 3598 3599NR name output 36001 a pan 36011 b pan 36021 i before 36031 x 0.3467901443380824 36041 y 0.7268028627434533 36052 a eks 36062 b pan 36072 i before 36082 x 0.7586799647899636 36092 y 0.5221511083334797 36103 a wye 36113 b wye 36123 i before 36133 x 0.20460330576630303 36143 y 0.33831852551664776 36154 a eks 36164 b wye 36174 i before 36184 x 0.38139939387114097 36194 y 0.13418874328430463 36205 a wye 36215 b pan 36225 i before 36235 x 0.5732889198020006 36245 y 0.8636244699032729 36256 a zee 36266 b pan 36276 i before 36286 x 0.5271261600918548 36296 y 0.49322128674835697 36307 a eks 36317 b zee 36327 i before 36337 x 0.6117840605678454 36347 y 0.1878849191181694 36358 a zee 36368 b wye 36378 i before 36388 x 0.5985540091064224 36398 y 0.976181385699006 36409 a hat 36419 b wye 36429 i before 36439 x 0.03144187646093577 36449 y 0.7495507603507059 364510 a pan 364610 b wye 364710 i before 364810 x 0.5026260055412137 364910 y 0.9526183602969864 3650 3651 3652================================================================ 3653DSL BREAK/CONTINUE IN NESTED FOR-OOSVAR 3654 3655mlr --opprint --from ./reg-test/input/abixy put -q 3656 @logging[NR] = $*; 3657 end { 3658 for ((k1, k2), v in @logging) { 3659 if (k1 != 2) { 3660 continue 3661 } 3662 for ((k3, k4), v in @logging) { 3663 if (k3 != 4) { 3664 continue 3665 } 3666 @output[k1][k2][k3][k4] = v; 3667 } 3668 } 3669 emit @output, "NR1", "name1", "NR2", "name2" 3670 } 3671 3672NR1 name1 NR2 name2 output 36732 a 4 a eks 36742 a 4 b wye 36752 a 4 i 4 36762 a 4 x 0.38139939387114097 36772 a 4 y 0.13418874328430463 36782 b 4 a eks 36792 b 4 b wye 36802 b 4 i 4 36812 b 4 x 0.38139939387114097 36822 b 4 y 0.13418874328430463 36832 i 4 a eks 36842 i 4 b wye 36852 i 4 i 4 36862 i 4 x 0.38139939387114097 36872 i 4 y 0.13418874328430463 36882 x 4 a eks 36892 x 4 b wye 36902 x 4 i 4 36912 x 4 x 0.38139939387114097 36922 x 4 y 0.13418874328430463 36932 y 4 a eks 36942 y 4 b wye 36952 y 4 i 4 36962 y 4 x 0.38139939387114097 36972 y 4 y 0.13418874328430463 3698 3699