making BNF editor