Add EBNF grammar for the text format