phino-0.0.169: test-resources/evaluate-packs/answers-a-dispatch-off-a-symbol-outside-a-join.yaml
# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# An entry that does not join morphs an operand dispatching off a bare
# symbol. The dispatch is 'opaque' and gives a new symbol (#2479), so the
# firing answers it and the run goes on instead of getting stuck.
symbolic: |
- Ξ»: L_fork
dataize:
πΏ1: $.onπ΅
morph:
π1: $.leftπ΅
π2: $.rightπ΅
join:
on: πΏ1
left: π1
right: π2
otherwise: L_fork
- Ξ»: L_id
morph:
π1: $.x
π: π1
location: 'Q.e1'
input: 'β¦ e1 β¦ β¦ Ξ» β€ L_id, x β¦ β¦ Ξ» β€ π1 β§.q β§.Ο β§'
result: 'π3:Ξ»'
protocol: |
π(Ξ¦.e1):
πΌ(L_id):
π(ΞΎ.x):
opaque π2:Ξ» β π1:Ξ».q
morphed πΒ·1Β·1 β π2:Ξ»
π1Β·1 β πΒ·1Β·1 # π(ΞΎ.x)
πΒ·1Β·2 β π1Β·1 # π of L_id
π(πΒ·1Β·2):
morphed πΒ·1Β·3 β π1Β·1
πΒ·1Β·4 β π1Β·1 # π(πΒ·1Β·2)
evaluated πΒ·1Β·5 β πΒ·1Β·4 # β¦ Ξ» β€ L_id, x β¦ π1:Ξ».q β§
opaque π3:Ξ» β π2:Ξ».Ο
morphed πΒ·0Β·1 β π3:Ξ»