pub fn parse_nl_string(
txt: String,
use_quadratic: bool,
) -> Result<NlProblem, String>Expand description
parse_nl_text_with_quadratic, taking the text by value.
A recognized body keeps a byte range into the source rather than a tree,
so the source outlives the parse. Taking ownership means the file
read_nl_file already read is moved into the problem instead of
copied: the text is resident during parsing either way, so this costs
nothing at the peak the phase is about.