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

34
LINES

< > BotCompany Repo | #1010409 // User input to diagram v2 [dev.]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (14464L/103K).

!7

p {
  bot();
}

sclass WithFunction {
  S text, function;
  WithFunction next;
  
  *() {}
  *(S *text) {} // unknown function
  *(S *text, S *function) {}
}

answer {
  WithFunction start = WithFunction(dropPunctuation(s));
  
  for (WithFunction wf = start; wf != null; wf = wf.next)
    splitUp(wf);
  
  // Show as web
  
  L<WebNode> nodes = web_stringsToChain(collect(linkedObjectsToList(start, 'next), 'text));
  
  if (nempty(nodes)) {
    showWeb(first(nodes).web);
    try answer "OK";
  }
}

svoid splitUp(WithFunction wf) {
  // TODO
}

Author comment

Began life as a copy of #1010396

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: #1010409
Snippet name: User input to diagram v2 [dev.]
Eternal ID of this version: #1010409/7
Text MD5: 0530d130229fe4b00e089820be5107eb
Transpilation MD5: 5e9a62d2806b9f988e29ee37c8c30d65
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-15 19:00:41
Source code size: 584 bytes / 34 lines
Pitched / IR pitched: No / No
Views / Downloads: 488 / 1036
Version history: 6 change(s)
Referenced in: [show references]