-
Notifications
You must be signed in to change notification settings - Fork 1
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
Compiler Project - Code Graph Compiler #8
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
introduce ast and compiler class still in the making.
created a README file for the compiler project
fully reworked the lexer rules to make them cleaner and easier to manage across the codebase. The rules' names are now defined in classes to make them easier to access and to avoid name collisions or typing errors. BREAKING CHANGE: the lexer rules' names have changed.
- the lexer is fully operational - the parser is partially done. It needs more methods to be implemented or refactored. - for the minimal compiler, I need to add at least one visitor (PrettyPrinter or CodeGeneration) - Also added a playground to make some tests for ideas before implementing them in the compiler.
update vscode settings for default python formatter
made a first simple pretty printer to rewrite the input code. This is part of the minimal compiler for the project. This is still in progress. I need to implement more in each parts. (lexer, parser, visitors) The next steps will be to add more supported Dart syntax and a simple code generator. (visitor for converting the AST to a UML diagram).
adding simple version of code generator visitor for code graph compiler. The visitor generates a UML class diagram (in Mermaid format).
wrote more about the project and my experimentation with it.
📝 update README for project. Also modified compiler to match main.py usage.
fixed the issue when the option --output was in last position. The filename wasn't removed from the args array and the compiler used it as an input file. => error :memo: fixed some typos in README
add support for abstract classes syntax. It can support the minimal syntax of abstract classes. This could be more improved to make it more relevant. Also, enhanced the pretty printer. fixed some small bugs/errors.
add command examples.
LBF38
added
documentation
Improvements or additions to documentation
enhancement
New feature or request
labels
May 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First version of the Code Graph Compiler.
This is a minimal version. It can be improved a lot.