Parser for rules

Is there a parser for the rule, sitemap and item files? Where can I find it?
I will really appreciate if someone can help!

Thanks,

Check the GitHUB repo for openhab. All the code is posted there. The parser will not be an independent binary or anything like that. It is embedded in the rest of the code.

Found it! thanks.

Could you please point me to the set of files which has the parser code? I want the parser for the .rules files specifically.
I found the model.rules jar but there is no documentation so it is hard to figure out how to use the jar.

I’ve not contributed to the code so have no idea where that code may be. Given that the Rule’s DSL is based on Xtext I’m willing to bet the bulk of the parsing takes place in a third party library.