c2nim knows about arrray[N, T]
This commit is contained in:
parent
3e056afb1c
commit
02e97422ed
1 changed files with 5 additions and 4 deletions
|
|
@ -624,10 +624,11 @@ proc parseTypeSuffix(p: var TParser, typ: PNode): PNode =
|
|||
# array type:
|
||||
result = newNodeP(nkBracketExpr, p)
|
||||
addSon(result, newIdentNodeP("array", p))
|
||||
var r = newNodeP(nkRange, p)
|
||||
addSon(r, newIntNodeP(nkIntLit, 0, p))
|
||||
addSon(r, newBinary("-", index, newIntNodeP(nkIntLit, 1, p), p))
|
||||
addSon(result, r)
|
||||
#var r = newNodeP(nkRange, p)
|
||||
#addSon(r, newIntNodeP(nkIntLit, 0, p))
|
||||
#addSon(r, newBinary("-", index, newIntNodeP(nkIntLit, 1, p), p))
|
||||
#addSon(result, r)
|
||||
addSon(result, index)
|
||||
addSon(result, tmp)
|
||||
else:
|
||||
# pointer type:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue