Aha, self-contained again.

This commit is contained in:
Neil 2022-02-14 22:17:00 -08:00
parent a75385f71a
commit 2c8475ff9c

View File

@ -209,15 +209,13 @@ scan:
<command_date> ws* @s0 date @s1 ws* ";"? / "]"?
{ x->s0 = s0, x->s1 = s1; expect_pop();
return x->symbol = ARG_DATE, 1; }
<command_freeform> ws* @s0 [^\t\n\r\v\f;[\]\x00]* @s1 ws* ";"? / "]"?
<command_freeform> ws* @s0 [^\t\n\r\v\f;[\]\x00]* @s1 ws* ";"? / "]"?
{ x->s0 = s0, x->s1 = s1; expect_pop();
return x->symbol = ARG_FREEFORM, 1; }
<command, command_end> "]" => text
{ printf("]\n"); if(scan.command.size) { printf("huh?\n"); return 0; }
goto scan;
}
{ if(scan.command.size) return 0;
goto scan; }
<command, command_keyword, command_date, command_freeform, command_end> *
{ return x->symbol = ERROR, 0; }
*/
assert(0);
}