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

Combinations of various forms of component-level nesting does not parse #10

Closed chrfrantz closed 2 years ago

chrfrantz commented 2 years ago

The combined use of different nesting patterns does not resolve during parsing. The example is directly from the README.

Example: A(Program Manager) D(may) I(administer) Bdir(sanctions) {Cac{A(Program Manager) I(suspects) Bdir{A(farmer) I((violates [OR] does not comply)) with Bdir(regulations)}} [OR] Cac{A(Program Manager) I(has witnessed) Bdir,p(farmer's) Bdir(non-compliance) Cex(in the past)}}

chrfrantz commented 2 years ago

Fixed by extending regex.