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

13
LINES

< > BotCompany Repo | #1008945 // jmatch2_debug

JavaX fragment (include)

static bool jmatch2_debug(S pat, L<S> tok) {
  List<String> tokpat = javaTok(pat);
  jfind_preprocess(tokpat);
  ret jmatch2_debug(tokpat, tok);
}

// assumes you preprocessed tokpat
static bool jmatch2_debug(L<S> tokpat, L<S> tok) {
  print("jmatch2_debug:");
  pnl(transpose(ll(tokpat, tok)));
  if (l(tok) != l(tokpat)) false;
  ret findCodeTokens(tok, 1, false, toStringArray(codeTokensOnly(tokpat)), null) == 1; // TODO: optimize
}

Author comment

Began life as a copy of #1008943

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: #1008945
Snippet name: jmatch2_debug
Eternal ID of this version: #1008945/4
Text MD5: c4fb701fe41dd8fc7a19540ee05f75dc
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-20 00:25:39
Source code size: 448 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 475 / 516
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)