Change debug in parser to callback, as used in latest EBNF.