> -----Original Message----- > From: Wheeler, David A [mailto:[email protected]] > Sent: Monday, November 27, 2017 12:49 PM > To: [email protected]; [email protected] > Subject: RE: [spdx-tech] Proposed topic for this week's tech call: Extend license > expressions to include OR-MAYBE > For "OR MAYBE", in the definition of compound-expression, change: > compound-expression "OR" compound-expression ) / > to: > compound-expression "OR" ["MAYBE"] compound-expression ) / > [G.O.] To simplify the parsing, I was thinking of creating a separate "OR-MAYBE" operator: compound-expression "OR" compound-expression ) / compound-expression "OR-MAYBE" compound-expression ) / Let me know if you have any concern with this approach.
> If you want a MAYBE prefix to be allowed anywhere, you could change: > compound-expression = 1*1(simple-expression / > to: > compound-expression = ["MAYBE"] 1*1(simple-expression / > > The latter allows MAYBE as a prefix in general, in case you have no confidence in > *anything*. [G.O.] I like the additional expression, but I am concerned that it would increase the complexity for humans and parsers. In specific, "MAYBE" becomes a unary operator which precedes the expression it modifies. Our other unary operator "+" follows the expression. This inconsistency could be confusing. Gary _______________________________________________ Spdx-tech mailing list [email protected] https://lists.spdx.org/mailman/listinfo/spdx-tech
