Rewrite inline lexer