Skip to content

Commit 9d5b199

Browse files
committed
Convert first set of .CCLASS_* constants to remain symbolic in generated PIR.
1 parent ce077cd commit 9d5b199

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/PAST/Compiler-Regex.pir

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -405,40 +405,40 @@ Match various anchor points, including ^, ^^, $, $$.
405405
ops.'push_pirop'('ge', pos, eos, fail)
406406
ops.'push_pirop'('sub', '$I10', pos, off)
407407
ops.'push_pirop'('dec', '$I10')
408-
ops.'push_pirop'('is_cclass', '$I11', .CCLASS_NEWLINE, tgt, '$I10')
408+
ops.'push_pirop'('is_cclass', '$I11', '.CCLASS_NEWLINE', tgt, '$I10')
409409
ops.'push_pirop'('unless', '$I11', fail)
410410
ops.'push'(donelabel)
411411
goto done
412412

413413
anchor_eol:
414414
ops.'push_pirop'('sub', '$I10', pos, off)
415-
ops.'push_pirop'('is_cclass', '$I11', .CCLASS_NEWLINE, tgt, '$I10')
415+
ops.'push_pirop'('is_cclass', '$I11', '.CCLASS_NEWLINE', tgt, '$I10')
416416
ops.'push_pirop'('if', '$I11', donelabel)
417417
ops.'push_pirop'('ne', pos, eos, fail)
418418
ops.'push_pirop'('eq', pos, 0, donelabel)
419419
ops.'push_pirop'('dec', '$I10')
420-
ops.'push_pirop'('is_cclass', '$I11', .CCLASS_NEWLINE, tgt, '$I10')
420+
ops.'push_pirop'('is_cclass', '$I11', '.CCLASS_NEWLINE', tgt, '$I10')
421421
ops.'push_pirop'('if', '$I11', fail)
422422
ops.'push'(donelabel)
423423
goto done
424424

425425
anchor_lwb:
426426
ops.'push_pirop'('ge', pos, eos, fail)
427427
ops.'push_pirop'('sub', '$I10', pos, off)
428-
ops.'push_pirop'('is_cclass', '$I11', .CCLASS_WORD, tgt, '$I10')
428+
ops.'push_pirop'('is_cclass', '$I11', '.CCLASS_WORD', tgt, '$I10')
429429
ops.'push_pirop'('unless', '$I11', fail)
430430
ops.'push_pirop'('dec', '$I10')
431-
ops.'push_pirop'('is_cclass', '$I11', .CCLASS_WORD, tgt, '$I10')
431+
ops.'push_pirop'('is_cclass', '$I11', '.CCLASS_WORD', tgt, '$I10')
432432
ops.'push_pirop'('if', '$I11', fail)
433433
goto done
434434

435435
anchor_rwb:
436436
ops.'push_pirop'('le', pos, 0, fail)
437437
ops.'push_pirop'('sub', '$I10', pos, off)
438-
ops.'push_pirop'('is_cclass', '$I11', .CCLASS_WORD, tgt, '$I10')
438+
ops.'push_pirop'('is_cclass', '$I11', '.CCLASS_WORD', tgt, '$I10')
439439
ops.'push_pirop'('if', '$I11', fail)
440440
ops.'push_pirop'('dec', '$I10')
441-
ops.'push_pirop'('is_cclass', '$I11', .CCLASS_WORD, tgt, '$I10')
441+
ops.'push_pirop'('is_cclass', '$I11', '.CCLASS_WORD', tgt, '$I10')
442442
ops.'push_pirop'('unless', '$I11', fail)
443443
goto done
444444

0 commit comments

Comments
 (0)