Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1012241 // ai_tripelize_exclamCommand

JavaX fragment (include)

static T3<S> ai_tripelize_exclamCommand(S s, L<S> tok) {
  if (!eqGet(tok, 1, "!")) null;
  if (!isIdentifier(get(tok, 3))) null;
  int i = tok_smartIndexOfFirstSpace(tok, 1);
  S arg = trimJoinSubList(tok, i+1);
  ret t3(trimJoinSubList(tok, 0, i), empty(arg) ? "." : ",", or2(arg, "."));
}

Author comment

Began life as a copy of #1012219

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1012241
Snippet name: ai_tripelize_exclamCommand
Eternal ID of this version: #1012241/5
Text MD5: c7f22259a068a60c0167008980cd944e
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-26 13:07:58
Source code size: 297 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 359 / 369
Version history: 4 change(s)
Referenced in: [show references]