packages feed

phino-0.0.152: test-resources/rewriter-packs/custom/with-different-metas.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
input: '[[ x -> "hello", y -> "world" ]]'
output: |-
  ⟦
    z ↦ "hello world"
  ⟧
rules:
  custom:
    - name: concat with metas
      pattern: '[[ x -> !e_hello, y -> 𝑒-world, 𝐵-x ]]'
      result: '[[ z -> !e_hello_world, 𝐵-x ]]'
      where:
        - meta: '!d-space'
          function: dataize
          args: ['" "']
        - meta: '𝛿_HELLO'
          function: dataize
          args: ['!e_hello']
        - meta: '!d-WORLD1'
          function: dataize
          args: ['𝑒-world']
        - meta: '!e_hello_world'
          function: concat
          args:
            - '𝛿_HELLO'
            - '!d-space'
            - '!d-WORLD1'