SPDX expression syntax check

Check parentheses and AND, OR and WITH structure in license expressions. Extract identifiers without judging registry membership or legal compatibility.

The example value has been entered. Check it immediately or change the value.

Input is processed in the browser. Refreshing returns a sample value.

Result

Instructions and example

Parse the bounded grammar with WITH attached to a simple license and AND binding more tightly than OR.

MIT OR (Apache-2.0 AND BSD-3-Clause) is valid syntax with 3 extracted identifiers.

Up to 200 tokens and parenthesis depth 30. No license-list lookup: valid syntax does not establish recognized SPDX identifiers.

Frequently asked questions

Does passing SPDX syntax guarantee license compatibility?

No. The tool checks expression structure only.

Are lowercase SPDX operators accepted?

Enter AND, OR and WITH in uppercase.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors