Ergodic optimization for continuous functions on the Dyck-Motzkin shifts | Synapse