Paul Stemmet
8986f36f00
This is a part of an API changes I"ll be making, which will allow allocations in the scanner code. This change is being made for a few reasons. 1. Allows me to make the Scanner API nicer, as callers will only need to pass in the underlying data being scanned, and will not be tied to a mutable lifetime which limits them to scanning tokens one at a time. 2. Makes the code simpler, as I no longer need to ensure the mutable 'owned' lifetime is honored throughout the call stack. 3. I'll need to allocate anyway for the indentation stack, and thus not allocating in other places that are sensible is less important. |
||
---|---|---|
.github/workflows | ||
docs | ||
src | ||
.gitignore | ||
.rustfmt.toml | ||
Cargo.lock | ||
Cargo.toml |