code: func (p *Parser) Incomplete() bool {
  	// If we're in a quote state other than noState, we're parsing a node
  	// such as a double-quoted string.
  	// If there are any open statements, we need to finish them.
  	// If we're constructing a literal, we need to finish it.
  	return p.quote != noState || p.openStmts > 0 || p.litBs != nil
  }
docs: // Incomplete reports whether the parser is waiting to read more bytes because
  // it needs to finish properly parsing a statement.
  //
  // It is only safe to call while the parser is blocked on a read. For an example
  // use case, see the documentation for Parser.Interactive.