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

[draft] Add Span to our Lexer error #4463

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

max-sixty
Copy link
Member

@m-span re your message on Discord — FYI a few weeks ago I tried to add Span to the lexer error, to try and unify the error types (so we're thinking similar things!).

But I got arcane chumsky errors and didn't manage to figure it out. If you can, great, but also this may be a warning beacon that it's not so easy...

I think the issue is that the stream which the lexer consumes needs to be composed of tokens which contain the span, so not just `char`. So if we want to do this, we need to pass in a different stream, not just a &str
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

Successfully merging this pull request may close these issues.

None yet

1 participant