public IEnumerable <Statement> Parse() { while (!_reader.EndOfStream) { var statement = _statementParser.ReadStatement(); if (statement != null) { yield return(statement); } } }