The function of anhydrous AlCl3 in the Friedel-Craft's reaction is to:
Absorb water
Absorb HCl
To produce electrophile
To produce nucleophile