Closed leo-costa closed 1 year ago
@vhladko tagging you. CODEOWNERS don't have write permissions to the repo yet correct?
why not have the Lexer._input as a span? you can turn Lexer into a ref struct and remove AsSpan() from the functions
why not have the Lexer._input as a span? you can turn Lexer into a ref struct and remove AsSpan() from the functions
My initial version was like this when I just translated the Rust version to C#. I had no idea of how the code would be used, i.e could be called from an async method, ref struct don't work on them. Then i found out it was based on a book.
It can currently parse
let
andreturn
statements