Reorganize the asm parser to be more like the linker script parser

Split the declarations into those required for the `%union` and
those only required for the `code`.
Only declare functions on top; define them at the bottom.
This commit is contained in:
Rangi42
2024-02-29 16:17:55 -05:00
parent 043db49676
commit 91d22f180e
3 changed files with 481 additions and 455 deletions

View File

@@ -149,9 +149,4 @@ int yylex(void);
bool lexer_CaptureRept(CaptureBody *capture);
bool lexer_CaptureMacroBody(CaptureBody *capture);
struct AlignmentSpec {
uint8_t alignment;
uint16_t alignOfs;
};
#endif // RGBDS_ASM_LEXER_H