Skip to content

Add lexer for Game Boy Development System ASM.#1117

Merged
alecthomas merged 2 commits intoalecthomas:masterfrom
lazy-stripes:feature/rgbds-asm-lexer
Aug 25, 2025
Merged

Add lexer for Game Boy Development System ASM.#1117
alecthomas merged 2 commits intoalecthomas:masterfrom
lazy-stripes:feature/rgbds-asm-lexer

Conversation

@lazy-stripes
Copy link
Copy Markdown
Contributor

This adds a new lexer for RGBDS assembly syntax, including:

  • All opcodes implementing the Game Boy CPU instruction set.
  • The syntax supported by the rgbasm assembler itself.

The new lexer was loosely based on the existing z80_assembly.xml file. Tests in lexers/testdata/rgbasm/ are based on the current RGBDS documentation. Example of test output as seen in the playground can be found here.

Thank you for your time.

@alecthomas
Copy link
Copy Markdown
Owner

Apologies for the delay, this looks great, thank you! Just one comment.

Comment thread lexers/embedded/rgbasm.xml
@alecthomas alecthomas merged commit 66a939a into alecthomas:master Aug 25, 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.

2 participants