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

13
LINES

< > BotCompany Repo | #1017381 // ai_buParser_parseSimplifications (old)

JavaX fragment (include)

// production -> verdict
static Map<T3<S>, S> ai_buParser_parseSimplifications(S text) {
  Map<T3<S>, S> map = new HashMap;
  for (S s : tlftj(text)) {
    L<S> tok = javaTokWithAngleBracketsC(s);
    S verdict = "?";
    if (l(tok) == 6 && eqOneOf(first(tok), "L", "K", "R"))
      verdict = popFirst(tok);
    if (l(tok) == 5)
      map.put(t3(tok.get(0), tok.get(2), tok.get(4)), verdict);
  }
  ret map;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017381
Snippet name: ai_buParser_parseSimplifications (old)
Eternal ID of this version: #1017381/4
Text MD5: e8d03262535a05eebbb01176ca35db01
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-19 21:35:40
Source code size: 421 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 390 / 418
Version history: 3 change(s)
Referenced in: [show references]