Libraryless. Click here for Pure Java version (2395L/17K/53K).
!752 p { makeBot("Get Text Bot."); askMyself(loadSnippet("#1001791")); } static S answer(S s) { new Matches m; if (matchStart("get", s, m)) { //print("Get! rest: " + quote(m.rest())); ret get(m.rest()); } ret null; } static S get(S s) { new Matches m; if (match3("transpilation of *", s, m)) { S snippetID = m.unq(0); ret dropFirstLine(getServerTranspiled(snippetID)); } if (matchStart("line * of", s, m)) { S text = get(m.rest()); int lineNr = parseInt(m.unq(0)); ret getLine(text, lineNr); } ret null; } !include #1000619 // get
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001794 |
Snippet name: | Command processor experiment |
Eternal ID of this version: | #1001794/1 |
Text MD5: | 0a568a556eb9a990d68d718dae07ce49 |
Transpilation MD5: | 48e2dc985f69af003c5bdafda1b95f36 |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-28 15:12:31 |
Source code size: | 628 bytes / 33 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 614 / 661 |
Referenced in: | #1001802 - #1001794 works #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) |