Adding EBNF grammar and generated parser from rex