Skip to content

Commit

Permalink
RakuAST: remove the %methodcall hash
Browse files Browse the repository at this point in the history
First of many similar commits for bisectability
  • Loading branch information
lizmat committed Sep 8, 2023
1 parent e8076ae commit c035db2
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/Raku/Grammar.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,6 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
# Operators
# Precedence levels and their defaults
my %methodcall := nqp::hash('prec', 'y=', 'assoc', 'unary', 'dba', 'methodcall', 'fiddly', 1);
my %autoincrement := nqp::hash('prec', 'x=', 'assoc', 'unary', 'dba', 'autoincrement');
my %exponentiation := nqp::hash('prec', 'w=', 'assoc', 'right', 'dba', 'exponentiation');
my %symbolic_unary := nqp::hash('prec', 'v=', 'assoc', 'unary', 'dba', 'symbolic unary');
Expand Down Expand Up @@ -1939,21 +1938,18 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
token postcircumfix:sym<( )> {
:dba('argument list')
'(' ~ ')' [ <.ws> <arglist> ]
<O(|%methodcall)>
}
token postcircumfix:sym<[ ]> {
:my $*QSIGIL := '';
:dba('subscript')
'[' ~ ']' [ <.ws> <semilist> ]
<O(|%methodcall)>
}
token postcircumfix:sym<{ }> {
:my $*QSIGIL := '';
:dba('subscript')
'{' ~ '}' [ <.ws> <semilist> ]
<O(|%methodcall)>
}
token postcircumfix:sym<ang> {
Expand All @@ -1971,7 +1967,6 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
line => HLL::Compiler.lineof($/.orig, $/.from, :cache(1))
}
]
<O(|%methodcall)>
}
token postcircumfix:sym«<< >>» {
Expand All @@ -1987,7 +1982,6 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
line => HLL::Compiler.lineof($/.orig, $/.from, :cache(1))
}
]
<O(|%methodcall)>
}
token postcircumfix:sym<« »> {
Expand All @@ -2003,7 +1997,6 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
line => HLL::Compiler.lineof($/.orig, $/.from, :cache(1))
}
]
<O(|%methodcall)>
}
#-------------------------------------------------------------------------------
Expand All @@ -2012,25 +2005,21 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
token dotty:sym<.> {
<sym>
<dottyop>
<O(|%methodcall)>
}
token dotty:sym<.^> {
<sym>
<dottyop('.^')>
<O(|%methodcall)>
}
token dotty:sym<.?> {
<sym>
<dottyop('.?')>
<O(|%methodcall)>
}
token dotty:sym<.&> {
<sym>
<dottyop('.&')>
<O(|%methodcall)>
}
token dottyop($special?) {
Expand All @@ -2051,7 +2040,6 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
token privop {
'!'
<methodop('!')>
<O(|%methodcall)>
}
token methodop($*DOTTY) {
Expand Down Expand Up @@ -2103,7 +2091,7 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
token dottyopish { <term=.dottyop> }
proto token postfix {*}
token postfix:sym<i> { <sym> >> <O(|%methodcall)> }
token postfix:sym<i> { <sym> >> }
token postfix:sym<> { <power> <O(|%autoincrement)> }
token postfix:sym<+> { <vulgar> <O(|%autoincrement)> }
Expand Down Expand Up @@ -4360,7 +4348,6 @@ Rakudo significantly on *every* run."
:my $cursor := nqp::getlex('$¢');
:my $stub := $cursor.define_slang('MAIN', %*LANG<MAIN> := $cursor.unbalanced($stopper).WHAT, $cursor.actions);
$starter ~ $stopper [ <.ws> <statement> ]
<O(|%methodcall)>
}
}
$grammar-mixin := Postcircumfix.HOW.curry(
Expand Down

0 comments on commit c035db2

Please sign in to comment.