Created Debugging the compiler (markdown)

This commit is contained in:
Dominik Picheta 2014-08-09 05:03:46 -07:00
parent 1525b30f6c
commit 5a33a64f09
1 changed files with 11 additions and 0 deletions

11
Debugging-the-compiler.md Normal file
View File

@ -0,0 +1,11 @@
```nimrod
echo renderTree(someNode) # pretty prints the nimrod ast
debug(someNode) # outputs some JSON representation
echo typeToString(someType) # pretty prints some type
debug(someType)
echo symbol.name.s
debug(symbol)
echo renderTree(someNode, {renderIds}) # pretty prints the nimrod ast, but annotates symbol IDs
if n.info ?? "temp.nim": echo renderTree(n) # only output when it comes from "temp.nim"
if n.info ?? "temp.nim": writeStackTrace() # why the fuck does it process temp.nim here?
```