Bug fix- tokens.length

No longer gives false positive to a syntax error based on incorrect
amount of tokens generated.