MOF-based Metamodel Generation from (E)BNF Grammars