Skip to content

Conversation

@biqiboqi
Copy link
Contributor

@biqiboqi biqiboqi commented Oct 14, 2025

This PR introduces a Lexer module for the OvumLanguage compiler, responsible for lexical analysis and tokenization of source code

@biqiboqi biqiboqi requested a review from bialger October 14, 2025 22:30
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

@bialger
Copy link
Contributor

bialger commented Oct 15, 2025

@codex review
Review all changes in the PR, make sure they comply with the Google style guide and modern OOP, and find inconsistencies

@chatgpt-codex-connector
Copy link

Summary

  • Ensured the slash-specific handler remains active by removing / from the operator handler registration list so comment scanning works as intended. lib/lexer/Lexer.cppL155-L160

Testing

  • ⚠️ tests not run (not requested)

View task →

Copy link
Contributor

@bialger bialger left a comment

Choose a reason for hiding this comment

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

Really good work out there! But I would strongly advise fixing some code style inconsistencies and making a bit purer OOP in Token class removing definitions and fields from it in some way and getting rid of TokenType. All in all, great job, especially your decision with Visitor for tokens.

@bialger
Copy link
Contributor

bialger commented Oct 16, 2025

@biqiboqi I thought about Lexer class and I found a solution that can remove circular dependency of Lexer and all Handler's implementation. Let's create a class called something like "SourceWrapper" that will provide Peek and all text-handling related methods to the handlers, and store it in the lexer object and use SourceWrapper in the Handler interface.

@sashbek sashbek linked an issue Oct 20, 2025 that may be closed by this pull request
@bialger
Copy link
Contributor

bialger commented Oct 20, 2025

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Contributor

@bialger bialger left a comment

Choose a reason for hiding this comment

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

Good job, everything seems fine

@cloalenka cloalenka requested review from cloalenka and removed request for cloalenka October 21, 2025 14:49
Copy link
Contributor

@cloalenka cloalenka left a comment

Choose a reason for hiding this comment

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

🖖

@biqiboqi biqiboqi merged commit dd1be65 into master Oct 21, 2025
7 checks passed
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.

Implement lexer

3 participants