Enter the main parsing loop. When this function returns the parsing
is finished in the current block (and sub-blocks).
When this function exits, the entity is already destroyed, because
of this you should set it to NULL right after the function call.