pub fn parse_expression(expr: &str) -> Result<LicenseExpression, ParseError>Expand description
Parse a license expression string into a structured expression.
§Arguments
expr- The license expression string to parse
§Returns
Ok with parsed LicenseExpression, or Err with ParseError
§Examples
use provenant::license_detection::expression::parse_expression;
let expr = parse_expression("MIT AND Apache-2.0").unwrap();