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

5
LINES

< > BotCompany Repo | #1013554 // ai_parse_trivialCheck

JavaX fragment (include)

1  
static void ai_parse_trivialCheck(S input, Pair<S> sep, S parse) {
2  
  S stripped = parse.replace(sep.a, "").replace(sep.b, "");
3  
  if (!eq(stripped, input))
4  
    quickFail("Bad parse: " + parse + " for " + input + " with " + sep + " (stripped: " + stripped + ")");
5  
}

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: #1013554
Snippet name: ai_parse_trivialCheck
Eternal ID of this version: #1013554/3
Text MD5: db732b118fdb321a826a56956caface9
Author: stefan
Category: javax / general parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-09 12:51:36
Source code size: 267 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 419 / 431
Version history: 2 change(s)
Referenced in: [show references]