regex parser; word class; heap