Text this: A structural approach to the photonic processor /