types: add lexer test mode.