Stored grammar rules in dict and started handling multiple rules for same non terminal