Libraryless. Click here for Pure Java version (1595L/11K/36K).
!752 p{ makeBot("Code generator."); } answer{ if (matchStart("make code *",s ,m)) { S command = m.unq(0); S encodedcmmnd = ""; command = command.replace("make code", ""); if(command == null){ ret null; } if(command.indexOf("newbot") != -1){ encodedcmmnd += "p{\n\tmakeBot('BOT NAME HERE');\n}\nanswer{\n\n}"; }else if(command.indexOf("if") != -1){ encodedcmmnd += "if{}"; } //ntUpload(programID(), programID() + " generated code", encodedcmmnd); ret encodedcmmnd; } }
Began life as a copy of #1002233 by @bgrgndz
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002234 |
Snippet name: | Code generator (LIVE) |
Eternal ID of this version: | #1002234/1 |
Text MD5: | 036f476936ab9849110d835036ea9387 |
Transpilation MD5: | 1a5d50d41f3163792c393ec3afd0093d |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-12-30 21:19:02 |
Source code size: | 573 bytes / 23 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 604 / 668 |
Referenced in: | #3000202 - Answer for stefanreich (>> T conversion bot) #3000238 - Answer for stefanreich (>> t power bot) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |