I have a situation where I need to parse "compiled" javascript and execute 
equivalent code in Nim. I assume macros are the best (only?) way to achieve 
this. I have read all Macro resources + the Nim sections from Araq's book and I 
still don't have a clue where to begin; maybe I'm just a moron. If anyone can 
point me in the right direction here is an example of something I need to do:

Some example strings I might encounter:
    

"7+-167+521"

"1<3-55mod2"

"2+-2+4^4"

I need to actually execute these string as literal code and get a value and I 
am stuck trying to construct a macro that will do this.

Reply via email to