Skip to content

Commit

Permalink
Add rule 4 to user-defined rules
Browse files Browse the repository at this point in the history
  • Loading branch information
aabounegm committed Feb 6, 2024
1 parent 94348a3 commit 346046d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions eo-phi-normalizer/test/eo/phi/rules/yegor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@ rules:
output: '⟦ a ↦ ⟦ b ↦ ⟦ ⟧ ⟧ ⟧'
matches: false

- name: Rule 4
description: 'Φ-dispatch'
context:
global_object: ⟦ !B ⟧
pattern: |
Φ.!a
result: |
⟦ σ ↦ Φ, !B ⟧.!a
when: []
tests:
- name: Should match
input: Φ.a
output: ⟦ σ ↦ Φ ⟧.a
matches: true

- name: Rule 5
description: "ξ-dispatch"
pattern: |
Expand Down

0 comments on commit 346046d

Please sign in to comment.