$p->eof()
p
Indicates the end of a document and flushes any buffered text. Returns the parser object.