Nim/lib/core
Kaushal Modi f8cef575b3 Improve dumpLisp macro (#9515)
* Improve dumpLisp macro

- Remove commas from the lisp representation of the AST.
- Make the dumpLisp output "pretty" and indented.
- Improve docs of `dumpTree` and `dumpLisp` macros.

With:

    dumpLisp:
      echo "Hello, World!"

Output before this commit:

    StmtList(Command(Ident("echo"), StrLit("Hello, World!")))

Output after this commit:

    (StmtList
     (Command
      (Ident "echo")
      (StrLit "Hello, World!")))

* Re-use the traverse proc inside treeRepr for lispRepr too

- Add module-local `treeTraverse` proc.
- Also fix treeRepr/dumpTree not printing nnkCommentStmt node contents.

* More doc string updates

* Allow unindented lispRepr output for tests

* Update a test affected by the lispRepr change

* Fix dumpTree

* Add note about lispRepr and dumpLisp to changelog [ci skip]
2018-10-27 14:10:05 +01:00
..
allocators.nim allocators: add deallocAll proc pointer 2018-07-27 18:19:18 +02:00
locks.nim Disable stacktrace in locks (#6128) 2017-07-21 17:20:46 +02:00
macrocache.nim WIP: an API for VM replay global state support 2018-06-03 20:18:43 +02:00
macros.nim Improve dumpLisp macro (#9515) 2018-10-27 14:10:05 +01:00
refs.nim new runtime: added typelayouts.nim 2018-01-04 15:59:03 +01:00
rlocks.nim Fix `XDeclaredButNotUsed` warning when locks or rlocks module is used 2016-03-31 16:47:55 +06:00
seqs.nim allows a destructor to be attached to a tyString/tySequence 2018-07-27 18:20:13 +02:00
strs.nim WIP: nothing works 2018-08-05 09:38:14 +02:00
typeinfo.nim fixes #8916 by fixing typeinfo and marshal. (#9341) 2018-10-13 08:47:58 +02:00
typelayouts.nim new runtime: added typelayouts.nim 2018-01-04 15:59:03 +01:00