SONAR-4193 Create a macro interpreter API in sonar and use it for the rule macro