Ambiguity alias with "and" fails to identify the ambiguity
Closed this issue · 0 comments
hesa commented
Common Development and Distribution License (CDDL) is an alias for the ambiguity Common Development and Distribution License. An ambiguity should create a warning for the user (about the ambiguity) but a parse exception is raised instead.
$ flame license "Common Development and Distribution License (CDDL)"
Error: Could not parse "Common Development AND Distribution License ( CDDL )". Exception: Invalid expression nesting such as (AND xx) for token: "(" at position: 47
Preferably the exception should be caught and the user should be warned about both:
- the license could not be parsed
- the license has an ambiguity
Note: it is "and" that causes the problem in the above example since "and" is part of the license syntax (e.g. MIT AND BSD-3-Clause)