1
0
mirror of https://github.com/NikitaIvanovV/ctpv.git synced 2025-07-12 20:35:13 +02:00
This commit is contained in:
Nikita Ivanov
2022-06-10 13:06:41 +05:00
parent a6388d3950
commit a44cc26cef

@ -196,22 +196,27 @@ static int command(void)
return STAT_ERR;
}
static void newlines(void)
{
while (1) {
if (accept(TOK_NEW_LN) != STAT_OK)
break;
}
}
static int end(void)
{
NOT_ACCEPT(TOK_EOF);
EXPECT(TOK_NEW_LN);
while (1) {
if (accept(TOK_NEW_LN) != STAT_OK)
break;
}
newlines();
return STAT_OK;
}
static int commands(void)
{
end();
newlines();
while (1) {
NOT_ACCEPT(TOK_EOF);