pub fn tokenize(input: &str) -> Result<Vec<Token>, Error>
Tokenizes the given script.
Emits an appropriate error if the script is invalid and tokenization fails.