Skip to content

Commit 87eb6c8

Browse files
committed
Stub in an NQPRegex type.
This will serve as the code object for regexes, rules and tokens, and will come to hold the caps, NFA, etc.
1 parent bf091cc commit 87eb6c8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/core/NQPRoutine.pm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,15 @@ my knowhow NQPSignature {
5959
has $!types;
6060
has $!definednesses;
6161
}
62+
63+
my knowhow NQPRegex {
64+
has $!do;
65+
method nqpattr($key) {
66+
$!do.nqpattr($key)
67+
}
68+
}
69+
pir::stable_publish_vtable_handler_mapping__vPP(NQPRegex,
70+
nqp::hash(
71+
'invoke', nqp::list(NQPRegex, '$!do'),
72+
'get_string', nqp::list(NQPRegex, '$!do')));
73+
pir::set_boolification_spec__0PiP(NQPRegex, 5, nqp::null());

0 commit comments

Comments
 (0)