Package ebnfutils provides some utilities for messing with EBNF grammars.