-
Notifications
You must be signed in to change notification settings - Fork 0
Lexer! Again :) #7
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
Conversation
There was a problem hiding this 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
…o use StartCompilerConsoleUI, and remove mylib and ui implementations
# Conflicts: # lib/compiler_ui/compiler_ui_functions.cpp
… improved functionality
|
@codex review |
|
Summary
Testing
|
There was a problem hiding this 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.
|
@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. |
…aks across lexer and token classes
… and adjust error handling
…d column tracking instead of inheritance
…f clang-format for values in big program tests
final version of lexer for tests
Lexer tests ({})
|
@codex review |
There was a problem hiding this 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".
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🖖
This PR introduces a Lexer module for the OvumLanguage compiler, responsible for lexical analysis and tokenization of source code