Skip to content

Parens for setting precedence #3

Description

@withoutboats

The spec supports paren enclosed sub-expressions, which this library would find invalid.

The correct grammar:

license        ::= SPDX-license | SPDX-license, '+'
license_with   ::= license | license, 'WITH', SPDX-exception | '(', license_expr, ')'
license_joiner ::= 'AND' | 'OR'
license_expr   ::= license_with, (license_joiner, license_with)*

The 1.2.0 version's grammar:

license        ::= SPDX-license | SPDX-license, '+'
license_with   ::= license | license, 'WITH', SPDX-exception
license_joiner ::= 'AND' | 'OR'
license_expr   ::= license_with, (license_joiner, license_with)*

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions