_nt_space (Treetop::Compiler::Metagrammar)

    # File lib/treetop/compiler/metagrammar.rb, line 2948
          def _nt_space
            start_index = index
            if node_cache[:space].has_key?(index)
              cached = node_cache[:space][index]
              @index = cached.interval.end if cached
              return cached
            end

            s0, i0 = [], index
            loop do
              i1 = index
              r2 = _nt_white
              if r2
                r1 = r2
              else
                r3 = _nt_comment_to_eol
                if r3
                  r1 = r3
                else
                  self.index = i1
                  r1 = nil
                end
              end
              if r1
                s0 << r1
              else
                break
              end
            end
            if s0.empty?
              self.index = i0
              r0 = nil
            else
              r0 = instantiate_node(SyntaxNode,input, i0...index, s0)
            end

            node_cache[:space][start_index] = r0

            return r0
          end