Permalink
Browse files

Provide a way to manipulate highexpect.

  • Loading branch information...
1 parent e6ea357 commit 45ecaf8f2033aa48fe044df81246b8f1b7b76603 @jnthn jnthn committed Dec 10, 2012
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/QRegex/Cursor.nqp
View
@@ -329,7 +329,17 @@ role NQPCursorRole is export {
}
method !highexpect() {
- nqp::getattr($!shared, ParseShared, '@!highexpect')
+ nqp::getattr($!shared, ParseShared, '@!highexpect')
+ }
+
+ method !fresh_highexpect() {
+ my @old := nqp::getattr($!shared, ParseShared, '@!highexpect');
+ nqp::bindattr($!shared, ParseShared, '@!highexpect', []);
+ @old
+ }
+
+ method !set_highexpect(@highexpect) {
+ nqp::bindattr($!shared, ParseShared, '@!highexpect', @highexpect)
}
method !clear_highwater() {

0 comments on commit 45ecaf8

Please sign in to comment.