added a proof of concept for realish code generation
fixed some API bugs and a bison infinite loop
fixed makefile