From 85a67a25ac9757e694166b3c9e9e2c8cdeefc6da Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Sat, 20 Sep 2025 23:25:29 -0400 Subject: Initial commit --- src/parser.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/parser.h (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h new file mode 100644 index 0000000..73c489a --- /dev/null +++ b/src/parser.h @@ -0,0 +1,20 @@ +#ifndef PIT_PARSER_H +#define PIT_PARSER_H + +#include "lexer.h" +#include "runtime.h" + +typedef struct { + pit_lex_token token; + i64 start, end; +} pit_parser_token_info; + +typedef struct { + pit_lexer *lexer; + pit_parser_token_info cur, next; +} pit_parser; + +pit_parser *pit_parser_from_lexer(pit_lexer *lex); +pit_value pit_parse(pit_runtime *rt, pit_parser *st); + +#endif -- cgit v1.2.3