Libraryless. Click here for Pure Java version (10780L/76K).
1 | // both tokPat and tokInput must be C-tokenized |
2 | static L<PairS> ai_matchAngleBracketPattern(L<S> tokPat, L<S> tokInput) { |
3 | L<PairS> match = zipTwoListsToPairs_ifSameLength(tokPat, tokInput); |
4 | if (match == null) null; |
5 | ret antiFilter parsing_checkMatchPairUsingMechList(uniquify(dropTwinPairsIC(match))); |
6 | } |
7 | |
8 | static L<PairS> ai_matchAngleBracketPattern(S pat, L<S> tokInput) { |
9 | ret ai_matchAngleBracketPattern(javaTokWithAngleBracketsC_cached(pat), tokInput); |
10 | } |
Began life as a copy of #1017285
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017292 |
Snippet name: | ai_matchAngleBracketPattern - takes C-tokenized input, returns list of pairs (var, contents) |
Eternal ID of this version: | #1017292/7 |
Text MD5: | 8c1dc9b8b39564feb5bf434242ddb234 |
Transpilation MD5: | dbfe4c9aa11d06a93ddbb1fadd39d991 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-20 13:19:33 |
Source code size: | 472 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 345 / 450 |
Version history: | 6 change(s) |
Referenced in: | [show references] |