Meanwhile, I appear to have accidentally written another parser combinator library.
Conversation
And I spent all day improving and generalising it. Still not admitting it should be split out from its parent package.
Besides, it's alarmingly similar to, if not entirely identical to, a thing that's already on crates.io, and I don't really want to compete.
2
10
Super curious in how you've done it! I've tried it in Rust before but always ended up with crazy exploding traits with annoying type errors. โน๏ธ
1
impl Trait all over, and seamless boxing where necessary.
1
1
Nice! Super curious to see!
What did you use as your input stream thing?
2
Initially just slices, but I'm in the middle of generalising it.
2
1
/me wishes for a parser combinator lib:
- nice separate tokenizer support (tokenizer is just another parser that emits a stream of tokens, that you feed into another parser)
- error recovery (emit a broken AST)
- incremental parsing (for IDE support)
๐
3
2
I'm only focusing on #1 there. I'm just writing proc macros. ๐
1
1
Replying to
No probs! Sorry for my excitable feature requests! ๐โโ๏ธ

