
November 29th, 2010, 10:01 AM
|
|
Registered User
|
|
Join Date: Nov 2010
Location: ~
Posts: 12
Time spent in forums: 4 h 24 m 50 sec
Reputation Power: 0
|
|
|
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?
|