Skip to main content

split_code_and_data

Function split_code_and_data 

Source
pub fn split_code_and_data(text: &str) -> (&str, Option<&str>)
Expand description

Split source text into executable code and optional trailing data section.

The data section starts at a lexed __DATA__ or __END__ marker and includes the marker line itself.