Paul Stemmet
26cd16403b
An unfortunate glitch in the compiler requires that I use a match statement over fall through if guards, as the borrow checker is to restrictive, and will not allow the code to compile despite being clearly correct. This required me to lift the stream checks into next_token, which means we now have a redundant check. Hopefully in the future the borrow checker will become smarter. This commit also refactors stream checks to use a const identifier shared between the call site in next_token and the function proper, and misc changes to Scanner.eat_whitespace |
||
---|---|---|
.github/workflows | ||
docs | ||
src | ||
.gitignore | ||
.rustfmt.toml | ||
Cargo.lock | ||
Cargo.toml |