Moved lexer states into parser_internal.h

Renamed lexer states to begin with L_ rather than T_, so that they may
be distinguished from parser states.
Merge pull request #12 from caitp/issue-27

Moved lexer states into parser_internal.h