I think we need more tutorials about macro. These are the points to include in 
a tutorial.

  1. What are the elements we get inside a macro. (Like nnkIdent, nnkStmnt etc)
  2. How do we separate the stuff on the left side of the macro, right side of 
the macro, and the code after the macro name.
  3. How can we create new nim code from this elements like nnkIdent & nnkStmnt.



So far, after reading some macros and nim manual, i can understand that we can 
print the Nimnode (I dont what is this exactly) with "treeRepr" But i also know 
that we can get the code and parameters like an array (arg[0], arg[1]. I really 
really want to learn this beautiful & fun filled stuff but there is not enough 
tutorials with proper comments. 

Reply via email to