You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, for issue #323 I was writing a small TokenSink implementation. And to be honest, it took me good half-hour, to hour for that simplistic implementation.
I think what we might need is better docs, and possibly some convenience method. One pain point was adding following part:
let _ = tok.feed(&mut input);
tok.end();
Do we need a different tok.feed and tok.end() methods? Can they be let _ = tok.exec(&mut input)?
One thing that also irked me, was that I couldn't have implemented was to have tokenizer abort when encountering anything that isn't Text token?
The text was updated successfully, but these errors were encountered:
Hi, for issue #323 I was writing a small
TokenSink
implementation. And to be honest, it took me good half-hour, to hour for that simplistic implementation.I think what we might need is better docs, and possibly some convenience method. One pain point was adding following part:
Do we need a different
tok.feed
andtok.end()
methods? Can they belet _ = tok.exec(&mut input)
?One thing that also irked me, was that I couldn't have implemented was to have tokenizer abort when encountering anything that isn't
Text
token?The text was updated successfully, but these errors were encountered: