Skip to content

Commit

Permalink
RakuAST: less cursor internals, generic method name
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Sep 10, 2023
1 parent 6817b10 commit 7779b56
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Raku/Grammar.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -1393,9 +1393,10 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
my $*LEFTSIGIL := '';
my int $noinfix := $preclim eq 'y=';
my $here := self.new-cursor;
my int $pos := nqp::getattr_i($here, NQPMatch, '$!from');
my str $termishrx := 'termish';
my $here := self.new-cursor;
my int $pos := $here.from;
my str $rx := 'termish';
my @opstack;
my @termstack;
my $termcur;
Expand All @@ -1415,7 +1416,7 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
while 1 {
$here.set-pos($pos);
$termcur := $here."$termishrx"();
$termcur := $here."$rx"();
$pos := $termcur.pos;
$here.set-pos($pos);
if $pos < 0 {
Expand Down Expand Up @@ -1489,7 +1490,7 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
# We got an infix.
%inO := self.properties-for-node($infix).prec;
$termishrx := nqp::ifnull(
$rx := nqp::ifnull(
nqp::atkey(%inO, 'nextterm'),
'termish'
);
Expand Down

0 comments on commit 7779b56

Please sign in to comment.