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