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

Replace parsing string with an abstract Stream #1

Open
honungsburk opened this issue Dec 17, 2022 · 2 comments
Open

Replace parsing string with an abstract Stream #1

honungsburk opened this issue Dec 17, 2022 · 2 comments
Labels
enhancement New feature or request experiment explore an experimental idea

Comments

@honungsburk
Copy link
Owner

It should be possible to allow the parsing of any Stream-like structure by replacing the explicit dependency on string with an interface Stream

See

@honungsburk honungsburk added the enhancement New feature or request label Dec 17, 2022
@honungsburk honungsburk changed the title Replace parsing string with parsing an abstract Steam Replace parsing string with parsing an abstract Stream Dec 17, 2022
@honungsburk honungsburk changed the title Replace parsing string with parsing an abstract Stream Replace parsing string with an abstract Stream Dec 17, 2022
@honungsburk
Copy link
Owner Author

kombo makes a lot of assumptions based on the input being text. Kombo should stay text only and if we want to build a parser combinator library on top of abstract streams then that is done in a new package.

@honungsburk honungsburk added the experiment explore an experimental idea label Aug 1, 2023
@honungsburk
Copy link
Owner Author

Currently, since we are dealing with text, kombo keeps track of the row and column of problems and contexts. But rows do not make sense for an abstract stream (hence my previous comment). It is definitely worth exploring. Who knows? Maybe it is possible to generalize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request experiment explore an experimental idea
Projects
None yet
Development

No branches or pull requests

1 participant