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)

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

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: 391 / 419
Version history: 3 change(s)
Referenced in: [show references]