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

8
LINES

< > BotCompany Repo | #1028572 // pwt_followingTokens

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2887L) is out of date.

static ItIt<ParsedWithTokens<S>> pwt_followingTokens(int minTokens, int maxTokens, ListAndIndex<S> tok) {
  int remaining = countRemainingTokens(tok);
  int iStart = tok.idx | 1; // go to C token
  ret countIterator_inclusive(
    min(minTokens, remaining),
    min(maxTokens, remaining),
    n -> pwt_raw(tok.list, iStart, iStart+n*2-1));
}

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: #1028572
Snippet name: pwt_followingTokens
Eternal ID of this version: #1028572/5
Text MD5: e360103024c55eedaaa4652ad79516b9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-27 22:20:17
Source code size: 348 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 238 / 362
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1028588 - pwt_precedingTokens
#1028594 - pwt_transform - mapNonNulls for PWT, just copies the parsing information