1 | static bool jmatch2(S pat, L<S> tok) { |
2 | List<String> tokpat = javaTok(pat); |
3 | jfind_preprocess(tokpat); |
4 | ret jmatch2(tokpat, tok); |
5 | } |
6 | |
7 | // assumes you preprocessed tokpat |
8 | static bool jmatch2(L<S> tokpat, L<S> tok) { |
9 | if (l(tok) != l(tokpat)) false; |
10 | ret findCodeTokens(tok, 1, false, toStringArray(codeTokensOnly(tokpat)), null) == 1; // TODO: optimize |
11 | } |
Began life as a copy of #1002429
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: | #1008943 |
Snippet name: | jmatch2 - with full functionality of jfind (<quoted> etc.) |
Eternal ID of this version: | #1008943/6 |
Text MD5: | 682550820e7bf66eb2c48e11c4e4e4d8 |
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:49 |
Source code size: | 366 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 576 / 598 |
Version history: | 5 change(s) |
Referenced in: | [show references] |