Implemented the rest of the lexing state functions