work on new Code state machine design

This commit is contained in:
Brian Warner 2017-03-11 10:16:21 +01:00
parent e2c0f08216
commit 0ddc93110b

View File

@ -10,32 +10,27 @@ digraph {
S0A -> P0_got_code [label="set_code"] S0A -> P0_got_code [label="set_code"]
S0B -> P0_got_code [label="set_code"] S0B -> P0_got_code [label="set_code"]
P0_got_code [shape="box" label="B.got_code"] P0_got_code [shape="box" label="B.got_code"]
P0_got_code -> S4 P0_got_code -> S5
S4 [label="S4: known" color="green"] S5 [label="S5: known" color="green"]
S0A -> P0_list_nameplates [label="input_code"] S0A -> P0_list_nameplates [label="input_code"]
S0B -> P0_list_nameplates [label="input_code"] S0B -> P0_list_nameplates [label="input_code"]
S2 [label="S2: typing\nnameplate"] S2 [label="S2: typing\nnameplate"]
S2 -> P2_completion [label="<tab>"] S2 -> P0_list_nameplates [label="update_nameplates"]
P2_completion [shape="box" label="do completion"]
P2_completion -> P0_list_nameplates
P0_list_nameplates [shape="box" label="L.refresh_nameplates"] P0_list_nameplates [shape="box" label="L.refresh_nameplates"]
P0_list_nameplates -> S2 P0_list_nameplates -> S2
S2 -> P2_got_nameplates [label="got_nameplates"] S2 -> P2_claim [label="claim_nameplate" color="orange" fontcolor="orange"]
P2_got_nameplates [shape="box" label="stash nameplates\nfor completion"] P2_claim [shape="box" label="N.set_nameplate"]
P2_got_nameplates -> S2 P2_claim -> S3
S2 -> P2_finish [label="<hyphen>" color="orange" fontcolor="orange"] S3 [label="S3: typing\ncode\n(no wordlist)"]
P2_finish [shape="box" label="lookup wordlist\nfor completion"] S3 -> P3_stash_wordlist [label="got_nameplates" color="orange"]
P2_finish -> S3 P3_stash_wordlist [shape="box" label="stash\nwordlist" color="orange"]
S3 [label="S3: typing\ncode"] P3_stash_wordlist -> S4 [color="orange"]
S3 -> P3_completion [label="<tab>"] S3 -> P0_got_code [label="submit_words"]
P3_completion [shape="box" label="do completion"] S4 [label="S4: typing\ncode\n(yes wordlist)" color="orange"]
P3_completion -> S3 S4 -> P0_got_code [label="submit_words" color="orange" fontcolor="orange"]
S3 -> P0_got_code [label="<return>"
color="orange" fontcolor="orange"]
S0A -> S1A [label="allocate_code"] S0A -> S1A [label="allocate_code"]
S1A [label="S1A:\nconnecting"] S1A [label="S1A:\nconnecting"]