Update parserClasses.cpp

Added my version of setTokenClasses. Appears to work for most cases.