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

16
LINES

< > BotCompany Repo | #1028874 - pwt_initial - get initial token ranges

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

Transpiled version (3144L) is out of date.

static L<ParsedWithTokens<S>> pwt_initial(int maxTokens, S s) {
  ret pwt_initial(s, maxTokens);
}

static L<ParsedWithTokens<S>> pwt_initial(S s, int maxTokens) {
  ret pwt_initial(javaTok(s), maxTokens);
}

// maxTokens = how many code tokens per range (max)
static L<ParsedWithTokens<S>> pwt_initial(LS tok, int maxTokens) {
  ret concatMap(lai_codeTokens(tok), lai -> pwt_followingTokens(1, maxTokens, lai));
}

static L<ParsedWithTokens<S>> pwt_initial(int maxTokens, LS tok) {
  ret pwt_initial(tok, maxTokens);
}

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, 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
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: 44 / 91
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1028874 & http://1028874.tinybrain.de