chrfrantz / IG-Parser

Parser for IG 2.0 Statements encoded in IG Script Notation
GNU General Public License v3.0
7 stars 3 forks source link

Annotations on combinations (i.e., preceding the opening brace) are not parsed and ignored in output #8

Open chrfrantz opened 2 years ago

chrfrantz commented 2 years ago

If a component-level nested combination is preceded by an annotation (but without component), the entire nested combination is ignored in the output.

Example: [state]{Cac[state]{A[role=monitored,type=animate](Operations) I[act=violate](were (non-compliant [OR] violated)) Bdir[type=inanimate](organic farming provisions)} [AND] Cac[state]{A[role=enforcer,type=animate](Manager) I[act=terminate](has concluded) Bdir[type=activity](investigation)}}

The leading [state] will lead to matching failure --> likely in Regex.

chrfrantz commented 4 months ago

No longer relevant, since combination syntax is Cac[annotation]{ Cac{ ... } [XOR] Cac{ ... } }. However, inheriting component combination-level annotation should be considered.