implemented first primitive EBNF grammar test