Breadth-first phrase structure grammars and queue automata