Unified literal for numbers, main program now tokenises

This commit is contained in:
2023-10-26 07:15:52 +01:00
parent 131d70a9a3
commit 7bf6b53230
5 changed files with 33 additions and 78 deletions

View File

@@ -16,10 +16,8 @@
typedef enum TokenType
{
TOKEN_LITERAL_BYTE,
TOKEN_LITERAL_NUMBER,
TOKEN_LITERAL_CHAR,
TOKEN_LITERAL_HWORD,
TOKEN_LITERAL_WORD,
TOKEN_SYMBOL,
} token_type_t;
@@ -31,9 +29,9 @@ typedef struct
} token_t;
typedef darr_t buffer_t;
typedef darr_t token_stream_t;
const char *token_type_as_cstr(token_type_t type);
token_t *tokenise_buffer(buffer_t *, size_t *);
token_stream_t tokenise_buffer(buffer_t *);
#endif