Skip to content

Add new tokens to lexer - #17

Merged
Kiyotoko merged 8 commits into
mainfrom
lexer
Apr 28, 2026
Merged

Kiyotoko merged 8 commits into
mainfrom
lexer

Conversation

@Kiyotoko

Copy link
Copy Markdown
Member

Changes made
I added procedures and split fn to func and proc. Additionally, the Token To was introduced to represent the left arrow (->), which is now used for specifying return types. Besides that, this pr contains two minor fixes. The first one is a small bug fix that prevents ignoring every second input file inside the cli. The other is a feature for all Visitor traits to use associated types.

Related issues
This pr implements some features of #16. It is just the first one of many. I decided to split the changes into multiple smaller bug fixes because I think that this way it will be easier to review and understand what was changed.

Checklist

  • Build on platform:
    • Windows 10/11
    • Linux (NixOS)
    • macOS
  • Tested all changes (run cargo test)
  • Formatted all files (run cargo fmt)
  • Fits CONTRIBUTING.md
  • Fits CODE_OF_CONDUCT.md

@Kiyotoko
Kiyotoko requested a review from BaerLKR April 19, 2026 18:52
@Kiyotoko Kiyotoko added the enhancement New feature or request label Apr 19, 2026

@BaerLKR BaerLKR left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems fine to me
majority is refactoring anyways

Comment thread src/cli.rs
Comment thread src/parser.rs Outdated
Comment thread src/parser.rs
Comment thread src/parser.rs
@Kiyotoko
Kiyotoko merged commit ef494f3 into main Apr 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants