Added ruleName() function which can be called inside semantic actions to return the currently executing rule