lang: replace stack-based parser with a recursive parser

This commit is contained in:
2026-04-06 18:25:43 +01:00
parent 3a549aa6df
commit b904813cef
77 changed files with 2984 additions and 6499 deletions
+7
View File
@@ -0,0 +1,7 @@
#include "ctx.h"
bool parse_eof(struct ivy_parser *parser)
{
struct ivy_token *tok = peek_token(parser);
return (!tok && ivy_lexer_get_status(parser->p_src) == IVY_ERR_EOF);
}