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

Parsing continues (erroneously) due to wrong annotation of combinations (but correct bracket count) #19

Closed chrfrantz closed 1 year ago

chrfrantz commented 2 years ago

If a statement has a correct bracket count (equal number of opening and closing parentheses or brackets), the parsing nevertheless continues.

Example: Bdir,p(the poor [AND] those in vulnerable situations)) Bdir((exposure [AND] vulnerability)

Note the incomplete combinations - but errors balance out.

chrfrantz commented 1 year ago

Now throws error during parsing. Fixed in commit https://github.com/chrfrantz/IG-Parser/commit/62a0625fcd67763ce4a758cfc3e00c3b5e2be23c