cmdr
Hex Artifact Content
Not logged in

Artifact 1d8d41d27843cb2284843380b01929687b886290:


0000: 0a 43 6f 6d 6d 61 6e 64 20 63 6f 6d 70 6c 65 74  .Command complet
0010: 69 6f 6e 2e 20 44 65 63 69 73 69 6f 6e 20 74 61  ion. Decision ta
0020: 62 6c 65 2e 0a 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ble..===========
0030: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0040: 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 4f 66 66 69 63 65  ========..Office
0050: 72 73 0a 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 49 6e 70  rs.--------..Inp
0060: 75 74 20 69 73 20 73 79 6e 74 61 78 20 6f 6b 2f  ut is syntax ok/
0070: 62 61 64 20 66 6c 61 67 2e 0a 49 6e 70 75 74 20  bad flag..Input 
0080: 69 73 20 6c 69 73 74 20 6f 66 20 77 6f 72 64 73  is list of words
0090: 2e 0a 49 6e 70 75 74 20 69 73 20 74 65 78 74 20  ..Input is text 
00a0: 6f 66 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 6c  of the command l
00b0: 69 6e 65 2e 20 2d 20 65 6d 70 74 79 2f 6e 6f 74  ine. - empty/not
00c0: 2d 65 6d 70 74 79 2e 0a 0a 49 6e 70 75 74 20 69  -empty...Input i
00d0: 73 20 77 68 65 72 65 20 69 6e 20 74 68 65 20 6c  s where in the l
00e0: 69 73 74 20 6f 66 20 77 6f 72 64 73 20 74 68 65  ist of words the
00f0: 20 6f 66 66 69 63 65 72 20 69 73 2e 20 43 61 6e   officer is. Can
0100: 20 62 65 20 61 74 20 6c 61 73 74 20 77 6f 72 64   be at last word
0110: 2c 20 6f 72 20 62 65 66 6f 72 65 20 69 74 2e 0a  , or before it..
0120: 4c 61 73 74 20 77 6f 72 64 20 63 61 6e 20 62 65  Last word can be
0130: 20 65 6d 70 74 79 2e 0a 0a 6f 6b 2f 62 61 64 09   empty...ok/bad.
0140: 09 20 4f 4b 0a 65 6d 70 74 79 2f 6e 6f 74 2d 65  . OK.empty/not-e
0150: 6d 70 74 79 09 20 45 4d 50 54 59 0a 6c 61 73 74  mpty. EMPTY.last
0160: 2f 6e 6f 74 2d 6c 61 73 74 09 20 4c 41 53 54 0a  /not-last. LAST.
0170: 6c 61 73 74 2d 65 6d 70 74 79 2f 6e 6f 74 09 20  last-empty/not. 
0180: 4c 45 4d 50 0a 0a 4f 4b 09 45 4d 50 54 59 09 4c  LEMP..OK.EMPTY.L
0190: 41 53 54 09 4c 45 4d 50 09 41 63 74 69 6f 6e 0a  AST.LEMP.Action.
01a0: 2d 2d 09 2d 2d 2d 2d 2d 09 2d 2d 2d 2d 09 2d 2d  --.-----.----.--
01b0: 2d 2d 09 2d 2d 2d 2d 2d 2d 0a 6e 6f 09 2a 09 2a  --.------.no.*.*
01c0: 09 2a 09 4e 6f 20 63 6f 6d 70 6c 65 74 69 6f 6e  .*.No completion
01d0: 73 0a 79 65 73 09 79 65 73 09 2a 09 2a 09 43 6f  s.yes.yes.*.*.Co
01e0: 6d 70 6c 65 74 69 6f 6e 73 20 3d 20 6f 66 66 69  mpletions = offi
01f0: 63 65 72 20 63 6f 6d 6d 61 6e 64 73 2e 0a 09 6e  cer commands...n
0200: 6f 09 79 65 73 09 2a 09 43 6f 6d 70 6c 65 74 69  o.yes.*.Completi
0210: 6f 6e 73 20 3d 20 6d 61 74 63 68 69 6e 67 20 6f  ons = matching o
0220: 66 66 69 63 65 72 20 63 6f 6d 6d 61 6e 64 73 20  fficer commands 
0230: 2b 20 6c 69 6e 65 20 61 73 20 70 72 65 66 69 78  + line as prefix
0240: 0a 09 09 6e 6f 09 2a 09 46 69 6e 64 20 73 75 62  ...no.*.Find sub
0250: 6f 72 64 69 6e 61 74 65 20 74 6f 20 68 61 6e 64  ordinate to hand
0260: 6c 65 2c 20 64 69 73 70 61 74 63 68 2e 20 67 6f  le, dispatch. go
0270: 20 6e 65 78 74 20 77 6f 72 64 0a 2d 2d 09 2d 2d   next word.--.--
0280: 2d 2d 2d 09 2d 2d 2d 2d 09 2d 2d 2d 2d 09 2d 2d  ---.----.----.--
0290: 2d 2d 2d 2d 0a                                   ----.