_nt_sequence (Treetop::Compiler::Metagrammar)

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

            i0, s0 = index, []
            r1 = _nt_labeled_sequence_primary
            s0 << r1
            if r1
              s2, i2 = [], index
              loop do
                i3, s3 = index, []
                r4 = _nt_space
                s3 << r4
                if r4
                  r5 = _nt_labeled_sequence_primary
                  s3 << r5
                end
                if s3.last
                  r3 = instantiate_node(SyntaxNode,input, i3...index, s3)
                  r3.extend(Sequence0)
                else
                  self.index = i3
                  r3 = nil
                end
                if r3
                  s2 << r3
                else
                  break
                end
              end
              if s2.empty?
                self.index = i2
                r2 = nil
              else
                r2 = instantiate_node(SyntaxNode,input, i2...index, s2)
              end
              s0 << r2
              if r2
                r6 = _nt_node_class_declarations
                s0 << r6
              end
            end
            if s0.last
              r0 = instantiate_node(Sequence,input, i0...index, s0)
              r0.extend(Sequence1)
              r0.extend(Sequence2)
            else
              self.index = i0
              r0 = nil
            end

            node_cache[:sequence][start_index] = r0

            return r0
          end