r-dcf-syntax
Lossless syntax trees, builders, and text-preserving edits for the R dialect of Debian Control File (DCF) metadata.
crates.io | API documentation | repository
use parse;
let parsed = parse;
assert!;
let record = parsed.records.next.unwrap;
assert_eq!;
assert_eq!;
R DCF is related to deb822 but has different application rules. This crate
uses exact case-sensitive field lookup, preserves duplicate fields, does not
give # lines Debian comment semantics, and validates the portable field-name
grammar used by R metadata. Malformed lines remain in Rowan error nodes and
produce positioned diagnostics instead of preventing access to valid fields.
Use this crate for raw DCF syntax. Use
r-description-parser or
r-packages-parser for typed R
package metadata APIs.
License
MIT