public IStormCommandIn ReadCommand() { if (_commands.Any()) { return(_commands.Dequeue()); } var nextThing = _reader.Next(); while (_readerFormat.IsTaskIdList(nextThing)) { _taskIds.Enqueue(_readerFormat.TaskIds(nextThing)); nextThing = _reader.Next(); } return(_readerFormat.Command(nextThing)); }
public IStormCommandIn ReadCommand() { var nextThing = _reader.Next(); while (_readerFormat.IsTaskIdList(nextThing)) { nextThing = _reader.Next(); } return(_readerFormat.Command(nextThing)); }