Libraryless. Click here for Pure Java version (5273L/29K).
1 | static L<ParsedWithTokens<S>> pwt_initial(int maxTokens, S s) { |
2 | ret pwt_initial(s, maxTokens); |
3 | } |
4 | |
5 | static L<ParsedWithTokens<S>> pwt_initial(S s, int maxTokens) { |
6 | ret pwt_initial(javaTok(s), maxTokens); |
7 | } |
8 | |
9 | // maxTokens = how many code tokens per range (max) |
10 | static L<ParsedWithTokens<S>> pwt_initial(LS tok, int maxTokens) { |
11 | ret concatMap(lai_codeTokens(tok), lai -> pwt_followingTokens(1, maxTokens, lai)); |
12 | } |
13 | |
14 | static L<ParsedWithTokens<S>> pwt_initial(int maxTokens, LS tok) { |
15 | ret pwt_initial(tok, maxTokens); |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028874 |
Snippet name: | pwt_initial - get initial token ranges |
Eternal ID of this version: | #1028874/4 |
Text MD5: | 6a94a2633a752288bfce9c624cd7dcda |
Transpilation MD5: | b50ef938333738959ddf0ea8d2684bec |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-10 19:51:55 |
Source code size: | 534 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 275 / 414 |
Version history: | 3 change(s) |
Referenced in: | [show references] |