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

The pipes created during parsing instead of lexing #311

Merged
merged 1 commit into from
Apr 18, 2024
Merged

Conversation

Tarbetu
Copy link
Contributor

@Tarbetu Tarbetu commented Apr 18, 2024

As mentioned in the issue below, Koto aims to provide type hints:
#298

However, while parsing the statements like "List<List>", the ">>" at the end parsed as a "pipe operator" due to maximal munch principle. This pull request is preventing this situation and fixes the behavior of the parser.

@irh irh merged commit daa6668 into koto-lang:main Apr 18, 2024
6 checks passed
@irh
Copy link
Contributor

irh commented Apr 18, 2024

Thanks @Tarbetu!

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.

2 participants