write proper lexer for HPaths