Updated parser.c with changes in foreign content

parsing when token is NULL character.