Files
ivy/lang/parse/eof.c
T

8 lines
179 B
C
Raw Normal View History

#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);
}