Skip to content

Renamed the language, the compiler is still zpiler.. - #5

Merged
LowLevelLore merged 1 commit into
mainfrom
dev
Jun 22, 2025
Merged

Renamed the language, the compiler is still zpiler..#5
LowLevelLore merged 1 commit into
mainfrom
dev

Conversation

@LowLevelLore

@LowLevelLore LowLevelLore commented Jun 22, 2025

Copy link
Copy Markdown
Owner

Summary by Sourcery

Rename the project and internal namespaces from "zlang" to "zust", update documentation and code references, and perform broad include cleanup and code-format harmonization.

Enhancements:

  • Rename language and compiler namespaces, identifiers, and project references from "zlang" to "zust" across code, headers, and source files
  • Reorganize include directives in all.hpp by grouping and ordering headers consistently
  • Wrap CanaryGenerator and NameMapper classes in the zust namespace and remove the deprecated global NameMapper instance
  • Harmonize code formatting throughout codegen, parser, lexer, and support modules by unifying brace styles, switch-case indentation, and stream insertion alignment

Documentation:

  • Update README.md to reflect the renamed project "zust" and adjust usage instructions and examples accordingly

@sourcery-ai

sourcery-ai Bot commented Jun 22, 2025

Copy link
Copy Markdown

Reviewer's Guide

This PR overhauls the project’s identity and style by renaming the core namespace and project from “zlang” to “zust,” reorganizing includes, and applying consistent code formatting across the codebase.

File-Level Changes

Change Details Files
Project namespace and project identifier renamed from “zlang” to “zust”
  • Updated namespace declarations and ‘using namespace’ directives
  • Replaced all ‘zlang::’ references with ‘zust::’ in code and headers
  • Adjusted README, clone URL, code examples, and module identifiers
src/codegen/CodeGenWindows.cpp
src/codegen/CodeGenLinux.cpp
src/codegen/CodeGenLLVM.cpp
src/parser/Parser.cpp
main.cpp
include/all.hpp
README.md
Header includes reorganized and duplicates removed
  • Reordered and grouped standard and project headers in all.hpp
  • Removed redundant includes and ensured correct dependency order
include/all.hpp
include/support/CommandLine.hpp
Unified switch-case and brace formatting
  • Converted multi-line switch/case blocks to a consistent single-indent style
  • Standardized brace placement on function signatures and parameter lists
src/codegen/CodeGenWindows.cpp
src/codegen/RegisterAllocator.cpp
src/common/StringUtils.cpp
General whitespace and styling cleanup
  • Adjusted blank lines around methods and control structures
  • Aligned long ternary/conditional expressions
  • Standardized spacing in initializer lists
src/codegen/CodeGenWindows.cpp
src/parser/Parser.cpp
include/all.hpp

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey @LowLevelLore - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@LowLevelLore
LowLevelLore merged commit fb62f2b into main Jun 22, 2025
2 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.

1 participant