summaryrefslogtreecommitdiff
path: root/parse/tok.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-02-20 02:15:01 -0500
committerOri Bernstein <ori@eigenstate.org>2013-02-20 02:15:01 -0500
commit3e92cda1745121a0545c581d9f135feed9e280bd (patch)
tree4a594c23003a52e5d66b2a79fbca5d5733631b11 /parse/tok.c
parent543887f46d1d7796bd8f1e6d329401197b19ec56 (diff)
downloadmc-3e92cda1745121a0545c581d9f135feed9e280bd.tar.gz
'#' is now the postfix pointer deref operator.
This makes operator precedence less confusing.
Diffstat (limited to 'parse/tok.c')
-rw-r--r--parse/tok.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse/tok.c b/parse/tok.c
index 78f1108..0a1cd2e 100644
--- a/parse/tok.c
+++ b/parse/tok.c
@@ -375,7 +375,7 @@ static Tok *oper(void)
case ']': tt = Tcsqbrac; break;
case ',': tt = Tcomma; break;
case '`': tt = Ttick; break;
- case '#': tt = Thash; break;
+ case '#': tt = Tderef; break;
case ':':
if (match(':'))
tt = Twith;
@@ -423,7 +423,7 @@ static Tok *oper(void)
if (match('='))
tt = Tmuleq;
else
- tt = Tstar;
+ tt = Tmul;
break;
case '/':
if (match('='))