-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
[Referencing this TODO]
Using the existing B lexer would make the tokenization of 6502 inline assembly a lot easier and shorter, but we can't directly use the existing lexer as B tokens do not match 6502-asm token.
I basically see 2 options here:
- We add the ability to set custom tokens in the lexer similar to historical mode (this would still require us to tokenize integers as 2 tokens:
$1234as$and1234) - Only use the lexer functions one lever deeper (
skip_whitespace, etc) and build our ownparse_tokenfunction.
How should we do it?
(This could also be useful for other inline assemblies like uxn.)
Metadata
Metadata
Assignees
Labels
No labels