21 lines
331 B
C
21 lines
331 B
C
#ifndef SCANNER_H
|
|
#define SCANNER_H
|
|
|
|
#include "token.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <ctype.h>
|
|
|
|
#define DEFAULT_TOKENLIST_SIZE 32
|
|
|
|
typedef struct {
|
|
Token** tokens;
|
|
int capacity;
|
|
int size;
|
|
} TokenList;
|
|
|
|
TokenList* ScanTokens(const char*);
|
|
void DestroyTokenList(TokenList*);
|
|
|
|
#endif |