2023-01-12 00:12:12 +01:00
|
|
|
#ifndef _LEXER_H_
|
|
|
|
#define _LEXER_H_
|
|
|
|
|
2023-02-13 10:28:28 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2023-09-20 22:00:47 +02:00
|
|
|
#include "../header/common.h"
|
|
|
|
#include "dyn_buf.h"
|
|
|
|
|
2023-01-12 00:12:12 +01:00
|
|
|
//Convert the input_file into tokens
|
2023-09-20 22:00:47 +02:00
|
|
|
void lexer(FILE *input_file, dynamic_buffer_t *tokens);
|
2023-01-12 00:12:12 +01:00
|
|
|
|
|
|
|
//Print out all the tokens in tokens
|
|
|
|
void print_tokens(char tokens[][MAX_TOKEN_SIZE]);
|
|
|
|
|
|
|
|
|
2023-09-20 22:00:47 +02:00
|
|
|
#endif
|