brack icon indicating copy to clipboard operation
brack copied to clipboard

`tokenizer` should return `Result<Vec<Token>>` instead of `Vec<Token>`

Open momeemt opened this issue 2 years ago • 1 comments

The tokenizer is currently implemented to return values of type Vec<Token>. However, tokenization can fail, and in such cases, it would be more appropriate for the function to return a Result<Vec<Token>, Error> to properly handle potential errors.

momeemt avatar Jan 22 '24 23:01 momeemt

I don't understand whether a tokenizer can throw an error.

momeemt avatar Mar 14 '24 02:03 momeemt

rel: #45

momeemt avatar Aug 22 '24 00:08 momeemt