Manual:Hooks/ParserClearState

Details
$parser: Parser object being cleared