Files
Nim/tests/vm
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
..
2018-08-13 13:02:52 +02:00
2018-09-17 19:14:13 +02:00
2018-09-17 18:52:40 +02:00
2017-07-25 09:28:23 +02:00
2017-02-03 17:35:58 +01:00
2018-08-13 13:02:52 +02:00
2016-08-23 01:10:34 +02:00
2015-06-18 15:06:00 +02:00
2017-02-05 08:51:43 +01:00
2017-07-25 09:28:23 +02:00
2017-07-25 09:28:23 +02:00
2017-01-19 13:26:22 +01:00
2015-08-09 23:53:22 +02:00
2016-10-09 18:02:48 +02:00
2016-10-24 20:10:10 +02:00
2016-04-03 22:51:22 +02:00
2018-09-03 09:06:52 +02:00
2018-06-26 21:25:27 +02:00
2018-10-27 14:10:05 +01:00
2014-03-22 21:18:56 +01:00
2018-07-30 22:28:24 +02:00
2014-12-28 00:42:24 +01:00
2018-08-13 23:16:03 +02:00
2017-07-25 09:28:23 +02:00
2018-08-13 13:02:52 +02:00
2015-06-18 15:06:00 +02:00
2017-07-25 09:28:23 +02:00
2016-04-04 01:41:14 +02:00
2014-08-15 09:57:03 +02:00
2017-07-25 09:28:23 +02:00
2014-03-16 20:42:49 +02:00
2015-09-23 21:46:33 +02:00