separating grammars and grammar graphs