aboutsummaryrefslogtreecommitdiff
path: root/src/inc/lexer.h
diff options
context:
space:
mode:
authorMarvin Borner2021-04-19 22:38:59 +0200
committerMarvin Borner2021-04-19 22:38:59 +0200
commitdb55ea657e1edcb5d7da3dd90e4dc6b7643bbfe0 (patch)
tree3f9b26c54bf3bfafac2e30c82b67bba02883d5c1 /src/inc/lexer.h
8051 is awesome
Diffstat (limited to 'src/inc/lexer.h')
-rw-r--r--src/inc/lexer.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/inc/lexer.h b/src/inc/lexer.h
new file mode 100644
index 0000000..833e522
--- /dev/null
+++ b/src/inc/lexer.h
@@ -0,0 +1,64 @@
+#ifndef LEXER_H
+#define LEXER_H
+
+enum token {
+ UNKNOWN,
+ NEWLINE,
+ 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,
+ SWP,
+ DA,
+ CRL,
+ XCH,
+ DJNZ,
+ XCHD,
+ CALL,
+ ORG,
+ DB,
+ DW,
+ INCLUDE,
+ BRACE_OPEN,
+ BRACE_CLOSE,
+ DATA,
+ BIT,
+};
+
+#endif