Skip to content

Stop consuming more bytes as soon as the final terminal is encountered? #277

Answered by alecthomas
ssquirrel asked this question in Q&A
Discussion options

You must be logged in to vote

Yep it's totally up to the Lexer. The builtin lexers do not support this at all, and the parser reads the entire token stream into memory before parsing.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ssquirrel
Comment options

@ssquirrel
Comment options

@alecthomas
Comment options

Answer selected by ssquirrel
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