A new optical system for symbolic substitution is proposed. The system is composed of the lensless shadow-casting system comibined with optical logical array and optical image storage elements. The light-emitting diodes (IED) are used as both a light source and a control element in the operation, so that symbolic substitution is implemented by all-photoelectric manipulation. Experimental principle, procedure and result are given.