_nt_double_quoted_string (Treetop::Compiler::Metagrammar)

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

            i0, s0 = index, []
            if input.index('"', index) == index
              r1 = instantiate_node(SyntaxNode,input, index...(index + 1))
              @index += 1
            else
              terminal_parse_failure('"')
              r1 = nil
            end
            s0 << r1
            if r1
              s2, i2 = [], index
              loop do
                i3, s3 = index, []
                i4 = index
                if input.index('"', index) == index
                  r5 = instantiate_node(SyntaxNode,input, index...(index + 1))
                  @index += 1
                else
                  terminal_parse_failure('"')
                  r5 = nil
                end
                if r5
                  r4 = nil
                else
                  self.index = i4
                  r4 = instantiate_node(SyntaxNode,input, index...index)
                end
                s3 << r4
                if r4
                  i6 = index
                  if input.index("\\\\", index) == index
                    r7 = instantiate_node(SyntaxNode,input, index...(index + 2))
                    @index += 2
                  else
                    terminal_parse_failure("\\\\")
                    r7 = nil
                  end
                  if r7
                    r6 = r7
                  else
                    if input.index('\"', index) == index
                      r8 = instantiate_node(SyntaxNode,input, index...(index + 2))
                      @index += 2
                    else
                      terminal_parse_failure('\"')
                      r8 = nil
                    end
                    if r8
                      r6 = r8
                    else
                      if index < input_length
                        r9 = instantiate_node(SyntaxNode,input, index...(index + 1))
                        @index += 1
                      else
                        terminal_parse_failure("any character")
                        r9 = nil
                      end
                      if r9
                        r6 = r9
                      else
                        self.index = i6
                        r6 = nil
                      end
                    end
                  end
                  s3 << r6
                end
                if s3.last
                  r3 = instantiate_node(SyntaxNode,input, i3...index, s3)
                  r3.extend(DoubleQuotedString0)
                else
                  self.index = i3
                  r3 = nil
                end
                if r3
                  s2 << r3
                else
                  break
                end
              end
              r2 = instantiate_node(SyntaxNode,input, i2...index, s2)
              s0 << r2
              if r2
                if input.index('"', index) == index
                  r10 = instantiate_node(SyntaxNode,input, index...(index + 1))
                  @index += 1
                else
                  terminal_parse_failure('"')
                  r10 = nil
                end
                s0 << r10
              end
            end
            if s0.last
              r0 = instantiate_node(Terminal,input, i0...index, s0)
              r0.extend(DoubleQuotedString1)
            else
              self.index = i0
              r0 = nil
            end

            node_cache[:double_quoted_string][start_index] = r0

            return r0
          end