glider remarks unrecognized
This commit is contained in:
parent
1c2872cab6
commit
c62189af44
@ -80,6 +80,7 @@ static int scan(struct flights *const f,
|
||||
<glider_pilot> * { why = "pilot unrecognized"; goto catch; }
|
||||
<glider_dual> * { why = "dual unrecognized"; goto catch; }
|
||||
<glider_instr> * { why = "instr unrecognized"; goto catch; }
|
||||
<glider_remarks> * { why = "remarks unrecognized"; goto catch; }
|
||||
<glider_err> * { why = "planned"; goto catch; }
|
||||
<glider_type> ws* @s0 semitext+ @s1 ws* ";" => glider_reg {
|
||||
const union line64 key
|
||||
@ -130,14 +131,15 @@ static int scan(struct flights *const f,
|
||||
{ why = "dual time"; goto catch; }
|
||||
continue;
|
||||
}
|
||||
<glider_instr> ws* ";" => glider_err /* not PIC */
|
||||
<glider_instr> ws* ";" => glider_remarks
|
||||
{ flight->glider.instr_min = 0; continue; }
|
||||
<glider_instr> ws* @s0 natural? @s1 ":" @t0 natural @t1 ws* ";"
|
||||
=> glider_err {
|
||||
=> glider_remarks {
|
||||
if(!pair_to_minutes(s0, s1, t0, t1, &flight->glider.instr_min))
|
||||
{ why = "instr time"; goto catch; }
|
||||
continue;
|
||||
}
|
||||
// <glider_remarks> ws* @s0 semitext+ ws+ @s1 ws* ??\ "\n"? =>
|
||||
*/ }
|
||||
assert(0); /* Never gets here. */
|
||||
catch:
|
||||
|
Loading…
Reference in New Issue
Block a user