aboutsummaryrefslogtreecommitdiff
path: root/src/inc/lexer.h
diff options
context:
space:
mode:
authorMarvin Borner2021-08-29 13:54:31 +0200
committerMarvin Borner2021-08-29 13:54:31 +0200
commiteef250dd4a0ae185a8d9d668f020b2ab5c2f4849 (patch)
treee55aca9bfe918c5673ef925cdf373fdff68faafd /src/inc/lexer.h
parent7c047df78502d53411fef09c6e39540d2b7e796a (diff)
Start x86 rewrite
Diffstat (limited to 'src/inc/lexer.h')
-rw-r--r--src/inc/lexer.h110
1 files changed, 0 insertions, 110 deletions
diff --git a/src/inc/lexer.h b/src/inc/lexer.h
deleted file mode 100644
index 33b56af..0000000
--- a/src/inc/lexer.h
+++ /dev/null
@@ -1,110 +0,0 @@
-#ifndef LEXER_H
-#define LEXER_H
-
-#include <def.h>
-
-enum token_type {
- UNKNOWN,
- NEWLINE,
- END,
- SPACE,
-
- INSTR_START,
- NOP,
- JBC,
- JB,
- JNB,
- JC,
- JNC,
- JZ,
- JNZ,
- SJMP,
- MOV,
- ORL,
- ANL,
- PUSH,
- POP,
- MOVX,
- AJMP,
- ACALL,
- LJMP,
- LCALL,
- RETI,
- RET,
- XRL,
- CPL,
- CLR,
- SETB,
- RR,
- RRC,
- RL,
- RLC,
- XLR,
- JMP,
- MOVC,
- INC,
- DEC,
- ADD,
- ADDC,
- DIV,
- DUBB,
- MUL,
- CJNE,
- SWAP,
- DA,
- CRL,
- XCH,
- DJNZ,
- XCHD,
- CALL,
- ORG,
- DB,
- DW,
- DATA,
- BIT,
- INCLUDE,
- INSTR_END,
-
- HASH,
- DOLLAR,
- SLASH,
- PLUS,
- COMMA,
- DOT,
- COLON,
- SEMICOLON,
-
- NUM_START,
- DEC_NUM,
- HEX_NUM,
- BIN_NUM,
- NUM_END,
-
- STRING,
-
- // Registers
- REGS_START,
- ACCU,
- ATR0,
- ATR1,
- R0,
- R1,
- R2,
- R3,
- R4,
- R5,
- R6,
- R7,
- REGS_END,
-};
-
-struct token {
- enum token_type type;
- char *start;
- u32 length;
-};
-
-void token_print(struct token *tok);
-struct token token_resolve(char *token, u32 size);
-
-#endif