Skip to content

Commit

Permalink
RakuAST: remove the %autoincrement hash
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Sep 8, 2023
1 parent c035db2 commit 95dbd6c
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 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 %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');
my %dottyinfix := nqp::hash('prec', 'v=', 'assoc', 'left', 'dba', 'dotty infix', 'nextterm', 'dottyopish', 'sub', 'z=', 'fiddly', 1);
Expand Down Expand Up @@ -2091,14 +2090,14 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
token dottyopish { <term=.dottyop> }
proto token postfix {*}
token postfix:sym<i> { <sym> >> }
token postfix:sym<> { <power> <O(|%autoincrement)> }
token postfix:sym<+> { <vulgar> <O(|%autoincrement)> }
token postfix:sym<i> { <sym> » }
token postfix:sym<> { <power> }
token postfix:sym<+> { <vulgar> }
token postfix:sym<++> { <sym> <O(|%autoincrement)> }
token postfix:sym<--> { <sym> <O(|%autoincrement)> }
token postfix:sym<⚛++> { <sym> <O(|%autoincrement)> }
token postfix:sym<⚛--> { <sym> <O(|%autoincrement)> }
token postfix:sym<++> { <sym> }
token postfix:sym<--> { <sym> }
token postfix:sym<⚛++> { <sym> }
token postfix:sym<⚛--> { <sym> }
# TODO: report the correct bracket in error message
token postfix:sym«->» {
Expand All @@ -2114,10 +2113,10 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
#-------------------------------------------------------------------------------# Prefixes
proto token prefix {*}
token prefix:sym<++> { <sym> <O(|%autoincrement)> }
token prefix:sym<--> { <sym> <O(|%autoincrement)> }
token prefix:sym<++⚛> { <sym> <O(|%autoincrement)> }
token prefix:sym<--⚛> { <sym> <O(|%autoincrement)> }
token prefix:sym<++> { <sym> }
token prefix:sym<--> { <sym> }
token prefix:sym<++⚛> { <sym> }
token prefix:sym<--⚛> { <sym> }
token prefix:sym<~~> { <sym> <.dupprefix: '~~'> <O(|%symbolic_unary)> }
token prefix:sym<??> { <sym> <.dupprefix: '??'> <O(|%symbolic_unary)> }
Expand Down

0 comments on commit 95dbd6c

Please sign in to comment.