Skip to main content

parse_file_with_settings

Function parse_file_with_settings 

Source
pub fn parse_file_with_settings<'arena>(
    arena: &'arena Bump,
    file: &File,
    settings: ParserSettings,
) -> &'arena Program<'arena>
Expand description

Parses the given file with custom settings and returns the program AST.

§Parameters

  • arena: The memory arena for allocations.
  • file: The file to parse.
  • settings: The parser settings.

§Returns

The parsed Program AST.