start implimenting a parser

This commit is contained in:
2025-05-27 17:19:09 +01:00
parent 3dedd7f348
commit 43bc7663fc
14 changed files with 241 additions and 195 deletions

View File

@@ -1,17 +1,9 @@
#include "lex.yy.h"
#include "lexer.h"
#include "../string/string.h"
#include <stdlib.h>
void lexer(LexerState state) {
yyscan_t scanner;
char *unquoted = unquote(state.content);
if (unquoted) {
printf("%s\n", unquoted);
free(unquoted);
}
yylex_init(&scanner);
yyset_extra(&state, scanner);