new lexer, $parent in template