Function pomsky_syntax::parse
source · pub fn parse(
source: &str,
recursion: u32
) -> (Option<Rule<'_>>, Vec<ParseDiagnostic>)
Expand description
Parses a source string as a pomsky expression.
The recursion
argument determines how much nesting is allowed in the
expression. Note that pomsky will overflow the stack when parsing an
expression with too much nesting, so the recursion
argument should be low
enough to prevent that. The recommended default is 256.