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)

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

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: 343 / 357
Version history: 2 change(s)
Referenced in: [show references]