attempt to port my compilers compiler into ruby