Skip to content

Conversation

@RandomSearch18
Copy link
Owner

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves error handling in the assembler by adding line number information to parse errors and providing better error messages for I/O operations.

  • Refactored ParseError to include line numbers and separate error types from context
  • Added ReadError and WriteError variants to AssemblerError for better I/O error handling
  • Changed main function return type from Result<(), String> to Result<(), AssemblerError> for consistent error handling

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/rmc_assemble.rs Enhanced error handling with line numbers in parse errors, added I/O error variants, and improved error display formatting
demos/tests/invalid.lmc Added test file with invalid opcode to demonstrate error reporting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@RandomSearch18 RandomSearch18 merged commit 1a136d2 into master Nov 18, 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.

2 participants