pub fn parse_str(source: &str) -> Result<TranslationUnit, Error>
Expand description
Parse a string into a syntax tree (TranslationUnit
).
Identical to TranslationUnit::from_str
.
pub fn parse_str(source: &str) -> Result<TranslationUnit, Error>
Parse a string into a syntax tree (TranslationUnit
).
Identical to TranslationUnit::from_str
.