Parser for planik rules