Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chunked input stream #4

Open
washort opened this issue Mar 19, 2013 · 3 comments
Open

chunked input stream #4

washort opened this issue Mar 19, 2013 · 3 comments

Comments

@washort
Copy link
Contributor

washort commented Mar 19, 2013

Parsley should be able to consume input from files in chunks. Each ChunkedInputStream object should refer to a buffer, and if .tail() falls off the end of the buffer, the new ChunkedInputStream object should load a new chunk.

@jml
Copy link
Contributor

jml commented Sep 29, 2013

For my use case, I have an input stream of edn expressions. I'd like to be able to have a function that takes that input stream and yields parsed expressions as it finds them.

Perhaps this is possible with current parsley (the protocol stuff looks promising), but a convenience API would be much appreciated.

@jml
Copy link
Contributor

jml commented Oct 7, 2013

https://gist.github.com/jml/6875518 is an example that I think ought to work with current parsley but doesn't seem to. Perhaps I'm getting something wrong.

@jml
Copy link
Contributor

jml commented Oct 12, 2013

And https://gist.github.com/habnabit/6885876 is an example of one that works.

@jml jml mentioned this issue Oct 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants