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

Stream scanning #26

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Stream scanning #26

wants to merge 9 commits into from

Conversation

timtadh
Copy link
Owner

@timtadh timtadh commented Mar 26, 2018

This PR will add support for scanning a byte stream instead of needing to read in the entire file. Note, because of how lexical analysis lookahead works in rare cases you still might need to read in the whole file. However, this will help many common cases.

This is not finished.

Signed-off-by: Tim Henderson <tadh@google.com>
Signed-off-by: Tim Henderson <tadh@google.com>
Signed-off-by: Tim Henderson <tadh@google.com>
Signed-off-by: Tim Henderson <tadh@google.com>
Signed-off-by: Tim Henderson <tadh@google.com>
Signed-off-by: Tim Henderson <tadh@google.com>
Not being able to call Peek(0) was a real pain and made using streams
much more difficult. This changes the behavior of streams to make
Peek(0) be ok but Peek() can only be called after Advance(>=1).

Signed-off-by: Tim Henderson <tadh@google.com>
Signed-off-by: Tim Henderson <tadh@google.com>
Signed-off-by: Tim Henderson <tadh@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant