1 | static bool jmatch2_debug(S pat, L<S> tok) { |
2 | List<String> tokpat = javaTok(pat); |
3 | jfind_preprocess(tokpat); |
4 | ret jmatch2_debug(tokpat, tok); |
5 | } |
6 | |
7 | // assumes you preprocessed tokpat |
8 | static bool jmatch2_debug(L<S> tokpat, L<S> tok) { |
9 | print("jmatch2_debug:"); |
10 | pnl(transpose(ll(tokpat, tok))); |
11 | if (l(tok) != l(tokpat)) false; |
12 | ret findCodeTokens(tok, 1, false, toStringArray(codeTokensOnly(tokpat)), null) == 1; // TODO: optimize |
13 | } |
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: | 476 / 518 |
Version history: | 3 change(s) |
Referenced in: | [show references] |