Simple, small, extensible regex-based lexer.