There are such things as AR and AK sized pistols.
Under 27 inches total length, no shoulder stock or foregrip extension, and a barrel under 12 inches (in Tennessee).