From 95dbd6cd829a5dff6a6e5a9372229ec267df3d5d Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Fri, 8 Sep 2023 13:59:16 +0200 Subject: [PATCH] RakuAST: remove the %autoincrement hash --- src/Raku/Grammar.nqp | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/Raku/Grammar.nqp b/src/Raku/Grammar.nqp index f343ebab3d1..88d00addbdf 100644 --- a/src/Raku/Grammar.nqp +++ b/src/Raku/Grammar.nqp @@ -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); @@ -2091,14 +2090,14 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common { token dottyopish { } proto token postfix {*} - token postfix:sym { >> } - token postfix:sym<ⁿ> { } - token postfix:sym<+> { } + token postfix:sym { » } + token postfix:sym<ⁿ> { } + token postfix:sym<+> { } - token postfix:sym<++> { } - token postfix:sym<--> { } - token postfix:sym<⚛++> { } - token postfix:sym<⚛--> { } + token postfix:sym<++> { } + token postfix:sym<--> { } + token postfix:sym<⚛++> { } + token postfix:sym<⚛--> { } # TODO: report the correct bracket in error message token postfix:sym«->» { @@ -2114,10 +2113,10 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common { #-------------------------------------------------------------------------------# Prefixes proto token prefix {*} - token prefix:sym<++> { } - token prefix:sym<--> { } - token prefix:sym<++⚛> { } - token prefix:sym<--⚛> { } + token prefix:sym<++> { } + token prefix:sym<--> { } + token prefix:sym<++⚛> { } + token prefix:sym<--⚛> { } token prefix:sym<~~> { <.dupprefix: '~~'> } token prefix:sym { <.dupprefix: '??'> }