5TTD5NPQPH2XMC552EMPP4WY7GVHR3RM5LCVZWXBQXOOACZMTUNAC R5HNWYMH47LWVHS5VVXNR6TCBDXDURVXZ6RCUNFTTTMIXF275ULQC QAPYL6SQYUGBYN7EXAUTLJQALCAMAMDM3KKWIP2JGDQRMMLIQS7QC 5HBC66CSFQ257TO3DJYBUNKE5RKR47CUJNMYP6Y4F7T6W7LNRV4AC R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC XBOQIWITIRSZWIS2UKUFR6L45GLKTIZAXY4SEBS2OWBF6Q5CHRBQC 2L5MEZV344TOZLVY3432RHJFIRVXFD6O3GWLL5O4CV66BGAFTURQC BF7TW3EKRIDYC6J2Q2J4YOBAVQF55Y3H6KGZIHNXMH4N72MR6GXQC CWDOQLMNGY6BP3QCSQCQ7NG5XZN3QIKPZ5YMQHS3AC53J6QZ5RUQC 7TQAF4BYIK75EEYCCK7VEUSZHNCWMWIA3HZGQKIILYESUZ5ZZRVQC submit_definition = function(State)State.load_time_error = nillive.send_definition_to_app(State)while true dolocal response_string = live.receive_from_app()if response_string thenClient_app_test_failures = json.decode(response_string)breakendif live.receive_run_time_error_from_app() thenbreakendlove.timer.sleep(0.001)endif Load_time_error thenState.load_time_error = Load_time_errorLoad_time_error = nilendif on.code_submit then on.code_submit(State) endend
if chord == 'f4' thensubmit_definition(Cursor_node.editor)local old_top = {line=Cursor_node.editor.screen_top1.line, pos=Cursor_node.editor.screen_top1.pos}local old_definition_name = live.get_cmd_from_buffer(Cursor_node.editor.lines[1].data)edit.keychord_press(Cursor_node.editor, chord, key)if not eq(Cursor_node.editor.screen_top1, old_top) thenViewport.y = Cursor_node.y + y_of_schema1(Cursor_node.editor, Cursor_node.editor.screen_top1)endlocal definition_name = live.get_cmd_from_buffer(Cursor_node.editor.lines[1].data)maybe_update_key_in_definitions(old_definition_name, definition_name, Cursor_node)if chord == 'return' thenA(--[[preserve screen_top of cursor node]] true)elseB(--[[preserve screen_top of cursor node]] true)end