Breadth and depth grammars and Deque automata