Parse state transitions