chumsky
chumsky copied to clipboard
`no-alloc` support
Hi,
I recently need to work with a simple parser in no-alloc environment, I really enjoy chumsky, but unfortunately, currently, chumsky does not support it. Is it possible to support the no-alloc environment? If it possible and acceptable, I can give a try for it.
It's certainly true that the vast majority of chumsky combinators don't require the allocator. However, this isn't true of:
- The
Richerror type (severity: low,Richis just a nice-to-have) - The
.boxed()combinator (severity: medium, it's often useful for reducing parser sizes) - The
recursiveparser (severity: high, recursive parsers are needed to parse any recursive grammar)
So far, we've worked under the assumption that no_std would be enough for most users. But since that's clearly not the case, I'd be happy to accept an MR that adds a default-enabled alloc feature - if you think these constraints are ones you can work under.