1 Star 0 Fork 15

herman/testing

forked from 狮偶/testing 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
IfElse.xs 6.03 KB
一键复制 编辑 原始数据 按行查看 历史
杜天微 提交于 2022-01-29 05:05 . 1
{"formatVersion":1,"fsms":[{"variables":[],"startState":0,"states":[{"code":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"typed_procedures\" id=\"l.1D!D(Q@%i4rfmA_k5v\" x=\"0\" y=\"0\"><mutation xmlns=\"\">%5B%7B%22name%22:%22t%22,%22type%22:%22String%22,%22blockId%22:%22l.1D!D(Q@%25i4rfmA_k5v%22%7D%5D</mutation><field name=\"NAME\">a</field><value name=\"RETURN\"><block type=\"struct_base_type\" id=\"75~tf!BbdX1s{pTMqXH_\"><field name=\"TYPE\">String</field></block></value><statement name=\"ARGS\"><block type=\"struct_field\" id=\"4Ucw9~ZS~Dny[X-L_hjl\"><field name=\"NAME\">t</field><value name=\"TYPE\"><block type=\"struct_base_type\" id=\"#1#=u[kq=K;2B+|h@G^y\"><field name=\"TYPE\">String</field></block></value></block></statement><next><block type=\"method_return\" id=\"_-rm=R0!]$85Sb=98+XM\"><mutation xmlns=\"\">%5B%22String%22%5D</mutation><value name=\"VALUE\"><block type=\"local_variable_get\" id=\"xD4T)}sMU~g#,.Q/UWb{\"><field name=\"VAR\">t</field></block></value></block></next></block><block type=\"on_event\" id=\"G30rSNRjIw2Y#|+%2tv*\" x=\"323\" y=\"0\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" eventname=\"Start\" style=\"event_blocks\"></mutation><next><block type=\"text_print\" id=\"p-h^g(vPF3CNQ/Kb6N*x\"><value name=\"TEXT\"><shadow type=\"text\" id=\"pM@FQ;lWT(m:@I.`th`/\"><field name=\"TEXT\">2</field></shadow><block type=\"typed_procedure_call\" id=\"~9?-{=@vYB!M:)FJU}(:\"><mutation xmlns=\"\">%7B%22returnType%22:%7B%22name%22:%22String%22,%22blockId%22:%2275~tf!BbdX1s%7BpTMqXH_%22,%22$__type%22:%22StructFieldType%22%7D,%22args%22:%5B%7B%22type%22:%7B%22name%22:%22String%22,%22blockId%22:%22#1#=u%5Bkq=K;2B+%7Ch@G%5Ey%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22t%22,%22blockId%22:%224Ucw9~ZS~Dny%5BX-L_hjl%22,%22$__type%22:%22StructField%22%7D%5D%7D</mutation><field name=\"MODULE\"></field><field name=\"METHOD\">a</field><value name=\"ARG0\"><block type=\"text\" id=\"i!6u[kB1vzBB4MOowG$J\"><field name=\"TEXT\">---------</field></block></value></block></value><next><block type=\"controls_if\" id=\"UCf?JQ$5L$rzSOm=5/0s\"><mutation elseif=\"1\" else=\"1\"></mutation><value name=\"IF0\"><block type=\"logic_boolean\" id=\"HnM|1JAKCr`(bTett6iA\"><field name=\"BOOL\">FALSE</field></block></value><statement name=\"DO0\"><block type=\"text_print\" id=\"y)OMRG$rOq^Nzg3A12_p\"><value name=\"TEXT\"><shadow type=\"text\" id=\"pM@FQ;lWT(m:@I.`th`/\"><field name=\"TEXT\">2</field></shadow><block type=\"typed_procedure_call\" id=\"}PCYJA+bO0{LVNUS?mZw\"><mutation xmlns=\"\">%7B%22returnType%22:%7B%22name%22:%22String%22,%22blockId%22:%2275~tf!BbdX1s%7BpTMqXH_%22,%22$__type%22:%22StructFieldType%22%7D,%22args%22:%5B%7B%22type%22:%7B%22name%22:%22String%22,%22blockId%22:%22#1#=u%5Bkq=K;2B+%7Ch@G%5Ey%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22t%22,%22blockId%22:%224Ucw9~ZS~Dny%5BX-L_hjl%22,%22$__type%22:%22StructField%22%7D%5D%7D</mutation><field name=\"MODULE\"></field><field name=\"METHOD\">a</field><value name=\"ARG0\"><block type=\"text\" id=\"9;Ydzl#BOY2G^c:gcKhu\"><field name=\"TEXT\">1</field></block></value></block></value></block></statement><value name=\"IF1\"><block type=\"logic_boolean\" id=\"S+N5^wrTa=Z19LGordj;\"><field name=\"BOOL\">TRUE</field></block></value><statement name=\"DO1\"><block type=\"text_print\" id=\"9JWc0pHgRoXsxvQ37KI|\"><value name=\"TEXT\"><shadow type=\"text\" id=\"pM@FQ;lWT(m:@I.`th`/\"><field name=\"TEXT\">2</field></shadow><block type=\"typed_procedure_call\" id=\"[d7NjYuQhp!g!1./eAbg\"><mutation xmlns=\"\">%7B%22returnType%22:%7B%22name%22:%22String%22,%22blockId%22:%2275~tf!BbdX1s%7BpTMqXH_%22,%22$__type%22:%22StructFieldType%22%7D,%22args%22:%5B%7B%22type%22:%7B%22name%22:%22String%22,%22blockId%22:%22#1#=u%5Bkq=K;2B+%7Ch@G%5Ey%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22t%22,%22blockId%22:%224Ucw9~ZS~Dny%5BX-L_hjl%22,%22$__type%22:%22StructField%22%7D%5D%7D</mutation><field name=\"MODULE\"></field><field name=\"METHOD\">a</field><value name=\"ARG0\"><block type=\"text\" id=\"]uF:Qx(rS5S$0K3H?{op\"><field name=\"TEXT\">2</field></block></value></block></value></block></statement><statement name=\"ELSE\"><block type=\"text_print\" id=\"GY+/VXSMj8o,nt7Hw,3,\"><value name=\"TEXT\"><shadow type=\"text\" id=\"pM@FQ;lWT(m:@I.`th`/\"><field name=\"TEXT\">2</field></shadow><block type=\"typed_procedure_call\" id=\"$G|Qc4TjMpj`6+%B(u9v\"><mutation xmlns=\"\">%7B%22returnType%22:%7B%22name%22:%22String%22,%22blockId%22:%2275~tf!BbdX1s%7BpTMqXH_%22,%22$__type%22:%22StructFieldType%22%7D,%22args%22:%5B%7B%22type%22:%7B%22name%22:%22String%22,%22blockId%22:%22#1#=u%5Bkq=K;2B+%7Ch@G%5Ey%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22t%22,%22blockId%22:%224Ucw9~ZS~Dny%5BX-L_hjl%22,%22$__type%22:%22StructField%22%7D%5D%7D</mutation><field name=\"MODULE\"></field><field name=\"METHOD\">a</field><value name=\"ARG0\"><block type=\"text\" id=\"kOV[R!4EuW},Qogr,NS^\"><field name=\"TEXT\">3</field></block></value></block></value></block></statement><next><block type=\"text_print\" id=\"f+,ypEhffv$avUZk4rL1\"><value name=\"TEXT\"><shadow type=\"text\" id=\"pM@FQ;lWT(m:@I.`th`/\"><field name=\"TEXT\">2</field></shadow><block type=\"typed_procedure_call\" id=\"3g,2}cM}w3WcwGt[nK,p\"><mutation xmlns=\"\">%7B%22returnType%22:%7B%22name%22:%22String%22,%22blockId%22:%2275~tf!BbdX1s%7BpTMqXH_%22,%22$__type%22:%22StructFieldType%22%7D,%22args%22:%5B%7B%22type%22:%7B%22name%22:%22String%22,%22blockId%22:%22#1#=u%5Bkq=K;2B+%7Ch@G%5Ey%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22t%22,%22blockId%22:%224Ucw9~ZS~Dny%5BX-L_hjl%22,%22$__type%22:%22StructField%22%7D%5D%7D</mutation><field name=\"MODULE\"></field><field name=\"METHOD\">a</field><value name=\"ARG0\"><block type=\"text\" id=\"mV6RQW7%fD@[AF0EqUF5\"><field name=\"TEXT\">====</field></block></value></block></value></block></next></block></next></block></next></block></xml>","comment":"状态","variables":[],"type":"state","name":"状态"}],"function":[],"comment":"状态机","type":"fsm","name":"Main"}],"structs":[],"functions":[],"depends":[],"type":"src","typeLimit":"","comment":"","env":[],"name":"Start"}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/c-herman/testing.git
git@gitee.com:c-herman/testing.git
c-herman
testing
testing
master

搜索帮助