finish implemented semantic actions but missing proper error messages and implemented code generation action