check in the token types, ported from the python robot lexer