package spdx_licenses
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=1071f6377ebc872404e3ee0d03838299
sha512=6d86133c2d668521b8f2ed2984dd2574e00cfe91bff63628dfad3ffacc47c7000a9e7a63d5e250be30568ff75680215ff37fca61b6dbd3890fa382a72615482c
doc/spdx_licenses/Spdx_licenses/index.html
Module Spdx_licensesSource
"DocumentRef-" idstring ":""LicenseRef-" idstring
type simple_license = | LicenseID of string(*license-id
*)| LicenseIDPlus of string(*license-id '+' (the '+' isn't contained in the string)
*)| LicenseRef of user_defined_license(*A SPDX user defined license reference
*)
simple-expression
"DocumentRef-" idstring ":""AdditionRef-" idstring
type addition = | Exception of string(*license-exception-id
*)| AdditionRef of user_defined_addition(*A SPDX user defined addition reference
*)
addition-expression
type t = | Simple of simple_license(*simple-expression
*)| WITH of simple_license * addition(*simple-expression "WITH" addition-expression
*)| AND of t * t(*compound-expression "AND" compound-expression
*)| OR of t * t(*compound-expression "OR" compound-expression
*)
license-expression
The errors returned by the parser
parse str parses str according to the syntax described in: https://spdx.github.io/spdx-spec/v3.0.1/annexes/spdx-license-expressions/
to_string license returns a normalized string corresponding to license in a valid SPDX license expression format.
valid_license_ids gives the list of valid license IDs. The list does not contain deprecated licenses. See: https://spdx.org/licenses/
valid_exception_ids gives the list of valid exception IDs. The list does not contain deprecated exceptions. See: https://spdx.org/licenses/exceptions-index.html