Use the ebnfutil package