Add numeric label support to assembler

This commit is contained in:
vyuuui
2025-03-24 07:16:14 -07:00
parent 5d4b884e64
commit e34907025d
7 changed files with 224 additions and 9 deletions

View File

@ -63,6 +63,8 @@ enum class Terminal
Eq,
So,
Dot,
NumLabFwd,
NumLabBwd,
};
enum class ParenType
@ -111,6 +113,7 @@ public:
virtual void OnCloseParen(ParenType type) {}
virtual void OnError() {}
virtual void OnLabelDecl(std::string_view name) {}
virtual void OnNumericLabelDecl(std::string_view name, u32 parse_num) {}
virtual void OnVarDecl(std::string_view name) {}
protected: