-
Notifications
You must be signed in to change notification settings - Fork 2
/
REPL.m5f
1 lines (1 loc) · 10.9 KB
/
REPL.m5f
1
{"components":[{"id":"____screen","createTime":1575046697470,"name":"Screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1575046697470,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1575046697470,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1575046697470,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"u2trPiyh&Onr*1Z#","createTime":1575046741770,"name":"label0","x":0,"y":0,"color":"#009807","text":">>","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":4},{"id":"=1+@E6pxQ6P+7$uS","createTime":1575046923541,"name":"label1","x":315,"y":0,"color":"#00ff25","text":"code","font":"lcd.FONT_Default","rotation":90,"type":"label","layer":5}],"type":"core","versions":"Beta","units":[],"hats":[],"blockly":"<variables><variable type=\"\" id=\"w4SwGwR#_B-`v4CT$MAH\">output_buffer</variable><variable type=\"\" id=\"vykFRTqvCu?37]pg~RK@\">keycode</variable><variable type=\"\" id=\"H8Z(L%5rK5u*QTUO!@#C\">inputstring</variable><variable type=\"\" id=\"Br[o*bo6x8=AYAl.+Giy\">outputstring_temp</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"90\" y=\"50\"><next><block type=\"variables_set\" id=\"Zqm.T$oaI5f}5]I[UB}8\"><field name=\"VAR\" id=\"w4SwGwR#_B-`v4CT$MAH\" variabletype=\"\">output_buffer</field><value name=\"VALUE\"><block type=\"text\" id=\"*dAhGl/fTs)}3(wPq9X2\"><field name=\"TEXT\">>></field></block></value><next><block type=\"speaker_vol\" id=\"`3KY--XmFhIkOK[56vlP\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\"yfA_ES6^6B?W3!0;hqhZ\"><field name=\"NUM\">0.05</field></shadow></value><next><block type=\"basic_on_loop\" id=\"}6Y6vBc{hit;EZ(F@HR+\"><statement name=\"LOOP\"><block type=\"controls_if\" id=\"f^vQbS6yyX/Xx(5d#|rm\"><value name=\"IF0\"><block type=\"faces_keyboard_isNewKeyPress\" id=\"~t?[.O=BYTeA%d4gC?mP\"></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"=+nu2k+NG$gPUVB`kxE/\"><field name=\"VAR\" id=\"vykFRTqvCu?37]pg~RK@\" variabletype=\"\">keycode</field><value name=\"VALUE\"><block type=\"faces_keyboard_readKey\" id=\"+=8B!s_|).i^ScZIp$+C\"></block></value><next><block type=\"variables_set\" id=\"%W3R.8L$A?Y796[:^L|z\"><field name=\"VAR\" id=\"H8Z(L%5rK5u*QTUO!@#C\" variabletype=\"\">inputstring</field><value name=\"VALUE\"><block type=\"faces_keyboard_readStr\" id=\",^_S@Dnbc2~hQl^t[c]V\"></block></value><next><block type=\"label_set_text\" id=\"XuE2=m_7:*9VN!B*];bz\"><field name=\"COMPONENT\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\".Vha+t?H_(N!m?qPLA4$\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"text_add\" id=\"TI8#KG=D;kP!3r`R,WL%\"><value name=\"arg0\"><shadow type=\"text\" id=\"PU2#LmtrB)pF=W{G+rd!\" disabled=\"true\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"w:JGdo7e[1:I$p-mNbE*\"><field name=\"VAR\" id=\"w4SwGwR#_B-`v4CT$MAH\" variabletype=\"\">output_buffer</field></block></value><value name=\"arg1\"><block type=\"variables_get\" id=\"mRjkV=%/=!r2EmWQN(SH\"><field name=\"VAR\" id=\"H8Z(L%5rK5u*QTUO!@#C\" variabletype=\"\">inputstring</field></block></value></block></value><next><block type=\"label_set_text\" id=\"`:`X3@Ah/hD:n(z3{cP}\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\".Vha+t?H_(N!m?qPLA4$\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"L6*c;`WuvdgbMyHVp;`m\"><field name=\"VAR\" id=\"vykFRTqvCu?37]pg~RK@\" variabletype=\"\">keycode</field></block></value><next><block type=\"controls_if\" id=\"@z/ls?adi]]woF#[(TaQ\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"rOs(B8:xZkf:Ubl`WIet\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"0QQ[4n$xU;w[i,ESIr).\"><field name=\"VAR\" id=\"vykFRTqvCu?37]pg~RK@\" variabletype=\"\">keycode</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"w{yMFwfP?6m8+1KDNR|e\"><field name=\"NUM\">8</field></block></value></block></value><statement name=\"DO0\"><block type=\"faces_keyboard_deleteStrLast\" id=\"cVKf$5sx2:k7-do,5Nzn\"><next><block type=\"variables_set\" id=\"DO1TmDthJSkvH949nej7\"><field name=\"VAR\" id=\"H8Z(L%5rK5u*QTUO!@#C\" variabletype=\"\">inputstring</field><value name=\"VALUE\"><block type=\"faces_keyboard_readStr\" id=\"HTRBB5iBMe/X3LX8]_9=\"></block></value><next><block type=\"label_set_text\" id=\"0K5k[Kx;^[g?M!K9kd+o\"><field name=\"COMPONENT\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\".Vha+t?H_(N!m?qPLA4$\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"text_add\" id=\"rg22TRAn9~h.Vhu=GECc\"><value name=\"arg0\"><shadow type=\"text\" id=\"PU2#LmtrB)pF=W{G+rd!\" disabled=\"true\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"^-mNJ!*;X/c/Zh!N;h5]\"><field name=\"VAR\" id=\"w4SwGwR#_B-`v4CT$MAH\" variabletype=\"\">output_buffer</field></block></value><value name=\"arg1\"><block type=\"variables_get\" id=\"#m=7O;6.KJl-Ck$;phJX\"><field name=\"VAR\" id=\"H8Z(L%5rK5u*QTUO!@#C\" variabletype=\"\">inputstring</field></block></value></block></value></block></next></block></next></block></statement><next><block type=\"controls_if\" id=\"1nLeZgc*_bLjXWsS*77=\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"3zHm;B5CX%KcOskyRM~^\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"=u`)eWW@-FI+MZQ%8-[)\"><field name=\"VAR\" id=\"vykFRTqvCu?37]pg~RK@\" variabletype=\"\">keycode</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"PCr=4)/RgUom1E{}d1BB\"><field name=\"NUM\">255</field></block></value></block></value><statement name=\"DO0\"><block type=\"speaker_sing\" id=\"X[w_J@PAzpToLR7eR~yQ\"><field name=\"TONE\">220</field><field name=\"BEAT\">1/8</field></block></statement><next><block type=\"controls_if\" id=\"4.:_7fF,TNZDSqgD:7[x\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"LUd8.vS5[Ey:yBUJnI^j\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"LG^FEx#:[aG`wSM*(d/D\"><field name=\"VAR\" id=\"vykFRTqvCu?37]pg~RK@\" variabletype=\"\">keycode</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"4rh9*(8P(K5)qJG2#HPm\"><field name=\"NUM\">183</field></block></value></block></value><next><block type=\"controls_if\" id=\"0`6%:5%5{3jM8(VO^e}S\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"~rmW$)k@-iLb7p=afFmP\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"e)oPSl]5G.y89vv*DQ%l\"><field name=\"VAR\" id=\"vykFRTqvCu?37]pg~RK@\" variabletype=\"\">keycode</field></block></value><value name=\"B\"><block type=\"math_number\" id=\";vm?{a9Bu-vkC$)I##7Z\"><field name=\"NUM\">10</field></block></value></block></value><statement name=\"DO0\"><block type=\"logic_try_except\" id=\"I!3hec)WjW,i?!Ugd/.A\"><statement name=\"try\"><block type=\"controls_ifelse\" id=\"P0G#dOL4W(2mg*--+m8z\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"tZNs^xKhZ|NO;28Z]oRl\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"text_count\" id=\"R~Hg:.$MXGHgk@k]$toV\"><value name=\"SUB\"><block type=\"text\" id=\"}lA~t!:VT3}eVA1ChSs.\"><field name=\"TEXT\">import </field></block></value><value name=\"TEXT\"><block type=\"variables_get\" id=\",L;:0(Dq]l]0[z:giWl?\"><field name=\"VAR\" id=\"H8Z(L%5rK5u*QTUO!@#C\" variabletype=\"\">inputstring</field></block></value></block></value><value name=\"B\"><block type=\"math_number\" id=\"[g[XE]N9bZsJb,liIF(Y\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"execute\" id=\"TVNySA|(1gykEw|FH(cb\"><field name=\"CODE\">outputstring_temp=exec(inputstring,globals(),locals())</field></block></statement><statement name=\"ELSE\"><block type=\"controls_ifelse\" id=\"*_(Laj:|66SoL8s?%/W_\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"+Cd6bVUru]sR+e#E_t05\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"text_count\" id=\"fg%ecYXAi.2qOz$2W-qS\"><value name=\"SUB\"><block type=\"text\" id=\"rpHUC/O}{9jEVYB_N)a#\"><field name=\"TEXT\">=</field></block></value><value name=\"TEXT\"><block type=\"variables_get\" id=\"+4~;Nvphw9FRBRWXu5OJ\"><field name=\"VAR\" id=\"H8Z(L%5rK5u*QTUO!@#C\" variabletype=\"\">inputstring</field></block></value></block></value><value name=\"B\"><block type=\"math_number\" id=\"sqXu(4r;xV)fe4,sMzVG\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"execute\" id=\"yppe#hGSFg20*OFK__/V\"><field name=\"CODE\">outputstring_temp = exec(inputstring, globals(), locals())</field></block></statement><statement name=\"ELSE\"><block type=\"execute\" id=\"H%$WoMUjw:]XVIqTYD!B\"><field name=\"CODE\">outputstring_temp = eval(inputstring, globals(), locals())</field></block></statement></block></statement></block></statement><statement name=\"except\"><block type=\"execute\" id=\"SA5Q]i-ly+O;g*2}7uZh\"><field name=\"CODE\">outputstring_temp = \"ERROR\"</field></block></statement><next><block type=\"controls_ifelse\" id=\"(X]q9$5n}aZ3u)fH8:w8\"><value name=\"IF0\"><block type=\"logic_negate\" id=\"Iy6+M)}oE96hc;)?Bjv(\"><value name=\"BOOL\"><block type=\"variables_get\" id=\"umb)prRYj@Y-}tH%;vO}\"><field name=\"VAR\" id=\"Br[o*bo6x8=AYAl.+Giy\" variabletype=\"\">outputstring_temp</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"7jn9=Ozqdgo`4x;pZeuG\"><field name=\"VAR\" id=\"Br[o*bo6x8=AYAl.+Giy\" variabletype=\"\">outputstring_temp</field><value name=\"VALUE\"><block type=\"text\" id=\"K2Z]{3:h,`!QjoBz_`i^\"><field name=\"TEXT\"></field></block></value></block></statement><statement name=\"ELSE\"><block type=\"execute\" id=\"+v+82g)9U$jcVc:6O)Hu\"><field name=\"CODE\">outputstring_temp = \"\\n%s\" % outputstring_temp</field></block></statement><next><block type=\"execute\" id=\"G.0*U3oLZV9]Z8A_DIW[\"><field name=\"CODE\">output_buffer = \"%s%s%s\\n>>\" % (output_buffer, inputstring, outputstring_temp)</field><next><block type=\"label_set_text\" id=\"6eA@Hh4lI7LwhK7AT{,Y\"><field name=\"COMPONENT\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\".Vha+t?H_(N!m?qPLA4$\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"r_N.GU+ba^4d.66hy%7r\"><field name=\"VAR\" id=\"w4SwGwR#_B-`v4CT$MAH\" variabletype=\"\">output_buffer</field></block></value><next><block type=\"faces_keyboard_clearStr\" id=\"SzzM97W!mm@XH8H{Q)VL\"></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block></next></block></next></block></next></block>","Blockly.Remotes":[],"modules":[]}