File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -716,6 +716,15 @@ role NQPCursorRole is export {
716
716
$ cur ;
717
717
}
718
718
719
+ method print () {
720
+ my $ cur := self . " !cursor_start_cur" ();
721
+ my str $ target := nqp ::getattr_s($ ! shared , ParseShared, ' $!target' );
722
+ $ cur . " !cursor_pass" ($ ! pos + 1, ' print' )
723
+ if $ ! pos < nqp :: chars ($ target )
724
+ && nqp ::iscclass(nqp ::const::CCLASS_PRINTING, $ target , $ ! pos );
725
+ $ cur ;
726
+ }
727
+
719
728
method cntrl () {
720
729
my $ cur := self . " !cursor_start_cur" ();
721
730
my str $ target := nqp ::getattr_s($ ! shared , ParseShared, ' $!target' );
@@ -734,6 +743,16 @@ role NQPCursorRole is export {
734
743
$ cur ;
735
744
}
736
745
746
+ method graph () {
747
+ my $ cur := self . " !cursor_start_cur" ();
748
+ my str $ target := nqp ::getattr_s($ ! shared , ParseShared, ' $!target' );
749
+ $ cur . " !cursor_pass" ($ ! pos + 1, ' graph' )
750
+ if $ ! pos < nqp :: chars ($ target )
751
+ && (nqp ::iscclass(nqp ::const::CCLASS_ALPHANUMERIC, $ target , $ ! pos )
752
+ || nqp ::iscclass(nqp ::const::CCLASS_PUNCTUATION, $ target , $ ! pos ));
753
+ $ cur ;
754
+ }
755
+
737
756
method FAILGOAL ($ goal , $ dba ? ) {
738
757
self . " !cursor_start_cur" ()
739
758
}
You can’t perform that action at this time.
0 commit comments