diff options
| author | Mistivia <i@mistivia.com> | 2025-03-05 18:31:55 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-03-05 18:31:55 +0800 |
| commit | 1ce0d45242097a07b7a4ee539a074ec812851a58 (patch) | |
| tree | 5825213b60c3da442780e2a3fa1bbc0750ab25f1 /src/as_tokenizer.h | |
| parent | 2c228ecb7d373fd3a7150768302ce0ade6714246 (diff) | |
finish parser
Diffstat (limited to 'src/as_tokenizer.h')
| -rw-r--r-- | src/as_tokenizer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/as_tokenizer.h b/src/as_tokenizer.h index fef8625..377aca0 100644 --- a/src/as_tokenizer.h +++ b/src/as_tokenizer.h @@ -1,8 +1,11 @@ +#ifndef FMV_AS_TOKENIZER_H_ +#define FMV_AS_TOKENIZER_H_ + #include <stdint.h> #include <stdio.h> typedef enum { - OP, ARG, LABEL, COLON, NEWLINE, ENDOFFILE + OP, ARG, TAG, COLON, NEWLINE, ENDOFFILE } TokenType; typedef struct { @@ -34,3 +37,5 @@ Token *nextToken(TokenStream *ts); Token *peekToken(TokenStream *ts); void printToken(Token *t); TokenStream* makeTokenStream(FILE* fp); + +#endif // FMV_AS_TOKENIZER_H_ |
