rerunning dmake
moving token assignment up in the while loop
more checks for assignment in function scope