It looks to me like it may be a device for grinding the edge profile, for example for eye glasses. The horizontal table looks to be a cam arrangement.