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

15
LINES

< > BotCompany Repo | #1011756 // ai_spec_tripelize

JavaX fragment (include)

1  
static void ai_spec_tripelize(S s) {
2  
  if (tok_containsSimpleArrow(tok_combineCurlyBrackets(javaTok(s)))) {
3  
    ifdef ai_spec_tripelize_debug
4  
      print("ai_spec_tripelize skipping: " + s);
5  
    endifdef
6  
    ret;
7  
  }
8  
  new Matches m;
9  
  T3<S> t = ai_tripelize(s);
10  
  ifdef ai_spec_tripelize_debug
11  
    print("ai_spec_tripelize got: " + s + " => " + ai_renderTriple(t));
12  
  endifdef
13  
  if (!ai_trivialTriple(t))
14  
    ai_postTriple(s, "possibly parses to triple", ai_renderTriple(t));
15  
}

Author comment

Began life as a copy of #1011748

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: #1011756
Snippet name: ai_spec_tripelize
Eternal ID of this version: #1011756/8
Text MD5: 568e64febe5c87d48966e98438becdca
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-22 08:51:50
Source code size: 492 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 385 / 429
Version history: 7 change(s)
Referenced in: [show references]