First commit

This commit is contained in:
mguinhos committed 2026-10-06 22:38:04 +00:00
commit dccc52bd7c
24 files changed
+1702

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#ifndef MICROPASCAL_LEXER_LEXER_H
#define MICROPASCAL_LEXER_LEXER_H
#include "micropascal-lexer/token.h"
typedef struct Lexer {
const char* fonte;
size_t tamanho;
size_t posicao;
int linha;
int coluna;
int houve_erro;
} Lexer;
void lexerInicializar(Lexer* lexer, const char* fonte);
Token lexerProximoToken(Lexer* lexer);
void tokenLiberar(Token* token);
#endif