[stack] Semi-compilation
2010-06-20 10:08:43 GMT
I've finished initial version of the interpreter (*). Currently my evaluator works using switch statements over the deque(**) of boxes and I want to split this deque into one deque holding data and another deque holding pointer to functions:
For 2 3 +
Currently : Box<primitive,Plus>,Box<float,*3>,Box<float,*2>,
Planned:
Data Box<float,*3>,Box<float,*2>
Code Box<*PlusFloat>,Box<*PushFloat>,Box<*PushFloat>,
What do you think about this? Or could you suggest a better approach
Slobodan
(*) http://www.bitbucket.org/bobiblazeski/lateral/
(**) Future of computation
RSS Feed