The Crystal programming language | http://crystal-lang.org | Fund Crystal's development: http://is.gd/X7PRtI | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/
I want to implement something like a dispatch table for a series of pseudo-bytecode instructions. I'd like to lookup each instruction and then yield my little VM to a proc, and execute each instruction that way.
Is this wise? And also, I don't see a yield_self method, am I missing something crucial?
instruction_add
-Dpreview_overload_order
##
.
{ %
's
{%
's are in there that i'd need to patch up and then either defuse them with spaces, or cut out whole section and stash it in a temp file. not a huge deal, but not a great dev experience either.