Skip to main content

parse

Function parse 

Source
pub fn parse<'arena, 'src>(
    arena: &'arena Bump,
    source: &'src str,
) -> ParseResult<'arena, 'src>
Expand description

Parse PHP source using the latest supported PHP version (currently 8.5).

The arena is used for all AST allocations, giving callers control over memory lifetime. The returned ParseResult borrows from both the arena and the source string.