[nim-dev] Re: Code generation from AST with annotations in Nim like in C

  • From: Krux02 <arne.doering@xxxxxxx>
  • To: nim-dev@xxxxxxxxxxxxx
  • Date: Sun, 4 Dec 2016 21:42:40 +0000

Nice to know this exists, but I want the switch / case / match to generate 
different code depending on the node-kind that is being passed.

Then when you are on the development branch of nim, ``error`` has a second 
optional argument, that allows you to pass a NimNode, so that positional 
information from that node gets printed on the cosole whe the error occurs.

Other related posts: