Ruby parser for the LDPath language