Rename files

This commit is contained in:
2026-04-03 13:21:17 -07:00
parent aa4564fc55
commit 0671e17e8e
7 changed files with 17 additions and 17 deletions

6
main.c
View File

@@ -1,4 +1,4 @@
#include "parse.h"
#include "token.h"
#include <stdio.h>
#include <stdlib.h>
@@ -17,12 +17,12 @@ int main(int argc, const char **argv) {
fread(text, 1, length, in);
fclose(in);
TokenStream stream;
TokenStreamError err;
ParseError err;
Token token;
token_stream_init(&stream, text, length);
while (!token_stream_is_eof(&stream)) {
token_stream_next(&stream, &token, &err);
if (token_stream_error_set(&err)) {
if (parse_error_is_set(&err)) {
printf("Error at %zu:%zu: %s\n", err.pos.line, err.pos.column,
err.message);
free(text);