Skip to content

Streaming regex parsing with version 0.3.6 #1071

Answered by BurntSushi
chrisduerr asked this question in Q&A
Discussion options

You must be logged in to vote

The first issue is somewhat minor, but I like the new start_state_reverse and start_state_forward methods, over a universal start state. However they do require an Input. Is it fine to just pass &[] as input for a streaming engine? It seems like it doesn't make a difference at least in my case.

I believed this is answered in the discussion for this PR: #1031. The TL;DR is that the discussion should give you a path forward with the current API, but it's non-obvious. It should be possible to compute the start state without providing a full Input. Instead, there will be a new type that mostly mirrors Input, but instead of accepting a full &[u8] haystack, it will accept a single (optional) …

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by chrisduerr
Comment options

You must be logged in to vote
1 reply
@BurntSushi
Comment options

Comment options

You must be logged in to vote
9 replies
@chrisduerr
Comment options

@BurntSushi
Comment options

@BurntSushi
Comment options

@chrisduerr
Comment options

@BurntSushi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants