November 29th, 2010, 10:01 AM
Implementing variables in your own language
I'm making a small programming language, and currently it only supports integers. The other problem is that to modify a variable, the assignment operator must have the name of the variable, not a variable AST node, which is very inconvenient.
I wonder if there is a better way? It would also be nice to support closures and scope. Does anyone have some hints or links to good sites on the subject?
February 19th, 2011, 03:00 PM
I don't think you'll find a lot (or any) folks on DS that have written their own language. Kind of cool that you're trying to tackle something like this. Is it an academic project, or are you working on bringing something completely new to the world of programming?
February 22nd, 2011, 08:47 AM
Mostly just for fun.
Originally Posted by drgroove
Anyway, I got to a state where it should work, but doesn't compile due to errors I can't figure out. I have a thread on another forum about it.