add * to grammar of code generator
fix code gen