Skip to content

Commit

Permalink
Add rule 1 as a user-defined rule
Browse files Browse the repository at this point in the history
  • Loading branch information
aabounegm committed Feb 8, 2024
1 parent c0e5ecc commit 10cda89
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions eo-phi-normalizer/test/eo/phi/rules/yegor.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
title: "Rule set based on Yegor's draft"
rules:
- name: Rule 1
description: 'Initialization of vertex attribute'
pattern: |
⟦ !a ↦ ⟦ !B ⟧, !B_rest ⟧
result: |
⟦ !a ↦ ⟦ !B, ν ↦ @T(Φ) ⟧, !B_rest ⟧
when:
- absent_attrs:
attrs: ['ν']
bindings: ['!B']
- not_equal: ['!a', 'ν']
tests:
- name: Adds vertex attribute
input: '⟦ a ↦ ⟦ ⟧ ⟧'
output: '⟦ a ↦ ⟦ ν ↦ ⟦ Δ ⤍ 00- ⟧ ⟧ ⟧'
matches: true

- name: Rule 3
description: 'Initialization of parent attribute'
pattern: |
Expand Down

0 comments on commit 10cda89

Please sign in to comment.