asm: implement parsing of classes, dot-mnemonics

This commit is contained in:
2024-12-14 21:57:29 +00:00
parent 83a021a862
commit 7f5cc3426d
13 changed files with 507 additions and 56 deletions

View File

@@ -5,6 +5,15 @@
#include <ivy/asm/assembler.h>
#include <ivy/asm/lex.h>
#define HASH_IDENT 0x684f633b2528fc75
#define HASH_INDEX 0x83cf8e8f9081468b
#define HASH_RECIPIENT 0x3d0abea328337078
#define HASH_SELECTOR 0x03b0355a1af4ac9c
#define HASH_GET 0xd4e26318faaa79f7
#define HASH_SET 0x823b87195ce20e23
#define HASH_PACKAGE 0x53cf3eec39cf731b
#define HASH_BLOCK 0x14e5faab9ce0e362
#define __TOK_PARSER_INDEX(x) ((x) - __IVY_ASM_TOK_INDEX_BASE)
#define __SYM_PARSER_INDEX(x) ((x) - __IVY_ASM_SYM_INDEX_BASE)
#define __KW_PARSER_INDEX(x) ((x) - __IVY_ASM_KW_INDEX_BASE)