On the way to generating a parser for EBNF