cti-stix2-json-schemas icon indicating copy to clipboard operation
cti-stix2-json-schemas copied to clipboard

Missing syntax in pattern grammar

Open mikecl24 opened this issue 1 year ago • 0 comments

The pattern grammar implementation seems to differ from the specification.

The spec states:

A Comparison Operator MAY be preceded by the modifier NOT, in which case the resultant Comparison Expression is logically negated.

yet NOT is supported for all comparison operators, except the EXISTS syntax. This was probably a mistake when EXISTS was introduced in stix 2.1, and thus maybe the sentence about NOT was not considered.

I've made a PR to fix this so the ANTLR grammar is consistent with the spec.

#156

mikecl24 avatar Oct 01 '22 19:10 mikecl24