Skip to content

String Formatting Enhancements and Binary Operator Support - #110

Merged
LunaStev merged 5 commits into
developfrom
feature/ast
Feb 20, 2025
Merged

LunaStev merged 5 commits into
developfrom
feature/ast

Conversation

@LunaStev

@LunaStev LunaStev commented Feb 20, 2025 •

Copy link
Copy Markdown
Member

🚀 Purpose and Functionality of Changes:

This pull request introduces functionality to handle string formatting and binary operations more efficiently in Wave:

  • String Formatting Enhancements:

    • Modifying Test Code: Updated test code to use string formatting, ensuring more readable and maintainable output in tests.
    • Add Formatting Support: Introduced new formatting functions for printing values, enabling formatted output for numbers, letters, and other types.
  • Binary Operator and Expression Support:

    • Added support for binary operators within expressions, allowing more complex calculations and manipulations of binary data in the language.
  • New Functionality for Formatting:

    • Added multiple functions to support various formatting needs, such as formatting numbers and letters into a desired representation (e.g., padding, width control).

🛠️ Programming Language Used:

  • Rust: Changes involve formatting logic and operator support integrated into the Wave language parser and evaluator.

📚 Libraries Used:

  • None

💡 Technologies or Methodologies Applied:

  • Binary Operators: Implemented new syntax and logic for supporting binary operators in Wave expressions.

🎯 Impact of the Change:

  • Enhanced Readability: With string formatting in place, output is more easily readable and structured.
  • Binary Operations: The new support for binary operators allows more robust operations in Wave expressions, expanding the language's capabilities.
  • Better Code Testing: The updated test code simplifies debugging and validation of Wave’s functionality through formatted output.

🔧 How to Test:

  1. Ensure that formatted output works correctly when using the print and other formatting functions in tests.
  2. Verify that binary operations execute as expected in expressions.
  3. Test multiple formatting functions to ensure numbers, letters, and other types are correctly formatted.

🚀 Version Update:

  • No new version bump (refactoring and grammar updates).

@LunaStev LunaStev self-assigned this Feb 20, 2025
@LunaStev
LunaStev merged commit 2dc1083 into develop Feb 20, 2025
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