Aha, self-contained again.
This commit is contained in:
parent
a75385f71a
commit
2c8475ff9c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user