added lexer.stateStackSize() method: "return the number of states currently on the stack" -- useful when you want to know the state stack index, e.g. when you want to store attributes with each state (such as counters which help drive the lexer actions).