Feature/code generation from peg