use lex yacc to parse the XPath with function