lang: replace stack-based parser with a recursive parser
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user