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