Implement parser module and update AST

This commit is contained in:
2026-04-24 14:50:54 +02:00
parent 2d1ccd52e6
commit a173e37adc
6 changed files with 78 additions and 48 deletions
+2 -7
View File
@@ -1,5 +1,4 @@
#include "test.h"
#include "buffer.h"
#include <setjmp.h>
#include <stdio.h>
@@ -16,18 +15,13 @@ typedef struct {
Test func;
} TestCase;
#include "test_buffer.c"
#include "test_token.c"
#include "test_parser.c"
static int s_totalTests;
static int s_greenTests;
static TestCase s_tests[] = {
{"buffer_string_reads_chars", test_buffer_string_reads_chars},
{"buffer_string_eof", test_buffer_string_eof},
{"buffer_string_eof_after_content", test_buffer_string_eof_after_content},
{"buffer_file_reads_chars", test_buffer_file_reads_chars},
{"buffer_file_open_fail", test_buffer_file_open_fail},
{"tokenstream_open_fail", test_tokenstream_open_fail},
{"tokenstream_simple_keyword", test_tokenstream_simple_keyword},
{"tokenstream_keywords_and_symbols", test_tokenstream_keywords_and_symbols},
@@ -36,6 +30,7 @@ static TestCase s_tests[] = {
{"tokenstream_whitespace_ignored", test_tokenstream_whitespace_ignored},
{"tokenstream_void_function_signature", test_tokenstream_void_function_signature},
{"tokenstream_info", test_tokenstream_info},
{"parser_module_name", test_parser_module_name},
};