diff options
author | Araq <rumpf_a@web.de> | 2011-11-25 00:08:02 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-25 00:08:02 +0100 |
commit | e40bca47c57095098ac9147d8e04a5c565d38edd (patch) | |
tree | 7a03916951ea56ad765ca6223aba4c865e0b6325 /lib | |
parent | 093af9b9eb5ad140697bfbc8e57aa9711ba83af1 (diff) | |
download | Nim-e40bca47c57095098ac9147d8e04a5c565d38edd.tar.gz |
fixes #60
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/core/macros.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 2e75e8d5d..fbc47fb63 100755 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -272,7 +272,7 @@ proc treeRepr*(n: PNimrodNode): string {.compileTime.} = of nnkCharLit..nnkInt64Lit: res.add(" " & $n.intVal) of nnkFloatLit..nnkFloat64Lit: res.add(" " & $n.floatVal) of nnkStrLit..nnkTripleStrLit: res.add(" " & $n.strVal) - of nnkIdent: res.add(" " & $n.ident) + of nnkIdent: res.add(" !\"" & $n.ident & '"') of nnkSym, nnkNone: assert false else: for j in 0..n.len-1: @@ -298,7 +298,7 @@ proc lispRepr*(n: PNimrodNode): string {.compileTime.} = of nnkCharLit..nnkInt64Lit: add(result, $n.intVal) of nnkFloatLit..nnkFloat64Lit: add(result, $n.floatVal) of nnkStrLit..nnkTripleStrLit: add(result, $n.strVal) - of nnkIdent: add(result, $n.ident) + of nnkIdent: add(result, "!\"" & $n.ident & '"') of nnkSym, nnkNone: assert false else: add(result, lispRepr(n[0])) |