Skip to content

Factor out common functions for reading integers of all bases#1888

Open
Rangi42 wants to merge 1 commit intogbdev:masterfrom
Rangi42:read-integers
Open

Factor out common functions for reading integers of all bases#1888
Rangi42 wants to merge 1 commit intogbdev:masterfrom
Rangi42:read-integers

Conversation

@Rangi42
Copy link
Contributor

@Rangi42 Rangi42 commented Jan 22, 2026

No description provided.

@Rangi42 Rangi42 added this to the 1.0.2 milestone Jan 22, 2026
@Rangi42 Rangi42 added rgbasm This affects RGBASM refactoring This PR is intended to clean up code more than change functionality labels Jan 22, 2026
@Rangi42 Rangi42 requested a review from ISSOtm January 22, 2026 17:13
@ISSOtm
Copy link
Member

ISSOtm commented Jan 23, 2026

The code change itself is good (less copy-paste, since source of truth for some strings), I'd just reword the change as-is as just factoring out some error-handling functions for number lexing.

Then there's also the possibility of unifying the decimal, octal, and hex lexing functions, as I have done in the Rust port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring This PR is intended to clean up code more than change functionality rgbasm This affects RGBASM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants