Re: Destroying / clearing a "recursive" vector ?
Posted: March 16th, 2020, 4:51 am
Project sounds awesome Keep us updated on how it goes
I was working on a similar thing, a simple statically typed scripting language that I would use in another project of mine (shameless plug: https://github.com/SlidyBat/BatScript)
I haven't worked on it for a while but I'm planning on getting back into it at some point. You might find some stuff useful, the way the AST is made is quite elegant using X-macros ("stole" the implementation idea from other C++ compilers). It also has 2 execution methods, a tree-walking interpreter (which is slow as balls) and a stack-based VM.
Good luck!
I was working on a similar thing, a simple statically typed scripting language that I would use in another project of mine (shameless plug: https://github.com/SlidyBat/BatScript)
I haven't worked on it for a while but I'm planning on getting back into it at some point. You might find some stuff useful, the way the AST is made is quite elegant using X-macros ("stole" the implementation idea from other C++ compilers). It also has 2 execution methods, a tree-walking interpreter (which is slow as balls) and a stack-based VM.
Good luck!