p[] instead of p^

This commit is contained in:
Araq 2011-04-11 21:42:28 +02:00
commit 3d696c3da5
12 changed files with 64 additions and 52 deletions

View file

@ -436,7 +436,7 @@ proc primary(p: var TParser): PNode =
parMessage(p, errIdentifierExpected, $p.tok)
of pxHat:
var a = result
result = newNodeP(nkDerefExpr, p)
result = newNodeP(nkBracketExpr, p)
addSon(result, a)
getTok(p)
of pxBracketLe: