Skip to main content

parse

Function parse 

Source
pub fn parse(source: &str) -> ParseResult
Expand description

Parse a .cabal source string into a ParseResult containing the CST and any diagnostics.

The returned CST preserves every byte of the input. Calling CabalCst::render() on an unmodified CST produces byte-identical output.