A little lexer for general filter