diff options
author | Araq <rumpf_a@web.de> | 2011-11-02 00:55:29 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-02 00:55:29 +0100 |
commit | 351e89e705c05bd9968010ab1af1674e7eda0d59 (patch) | |
tree | ebdbb14eba617b56c0a65df891889ca165c0576f /compiler/parser.nim | |
parent | 47f523cfb8b5d430d1105c608440200950183bb1 (diff) | |
download | Nim-351e89e705c05bd9968010ab1af1674e7eda0d59.tar.gz |
better code generation for constant aggregates
Diffstat (limited to 'compiler/parser.nim')
-rwxr-xr-x | compiler/parser.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim index d1798efa4..2a136b631 100755 --- a/compiler/parser.nim +++ b/compiler/parser.nim @@ -474,7 +474,8 @@ proc lowestExprAux(p: var TParser, limit: int): PNode = var a = newNodeP(nkInfix, p) var opNode = newIdentNodeP(p.tok.ident, p) # skip operator: getTok(p) - optInd(p, opNode) # read sub-expression with higher priority + optInd(p, opNode) + # read sub-expression with higher priority: var b = lowestExprAux(p, opPrec + leftAssoc) addSon(a, opNode) addSon(a, result) |