__SYMBOLS = { }; local function onAutoAssemble(script,syntax) local multiline_comment = false; for i = 0,script.count - 1 do local line = script[i]; if multiline_comment then if line:find'}' then multiline_comment = false end else if line:find'^registersymbol%(' then __SYMBOLS[#__SYMBOLS + 1] = 'un'..line:match'^registersymbol%(.-%)'; end if line:find'{' then multiline_comment = true; end end end end registerAutoAssemblerPrologue(onAutoAssemble); local main = getMainForm(); local btn = createButton(main); btn.width,btn.height,btn.top,btn.left = 100,30,290,460; btn.caption = 'clear U-symbols'; btn.onClick = function() autoAssemble(table.concat(__SYMBOLS,'\n')); __SYMBOLS = { }; end