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

9
LINES

< > BotCompany Repo | #1025379 - tok_collectTransformers

JavaX fragment (include)

svoid tok_collectTransformers(LS tok, LS out) {
  int i = -1;
  while ((i = jfind(tok, i+1, "meta-transform {")) >= 0) {
    int iOpening = indexOf(tok, i, "{");
    int iClosing = findEndOfBracketPart(tok, iOpening)-1;
    add(out, joinSubList(tok, iOpening+2, iClosing-1));
    clearTokens_reTok(tok, i, iClosing+1);
  }
}

Author comment

Began life as a copy of #1020932

download  show line numbers  debug dex   

Travelled to 2 computer(s): mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1025379
Snippet name: tok_collectTransformers
Eternal ID of this version: #1025379/1
Text MD5: 38dffaa635bcf6f2a7e802b2bb0027b7
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-27 00:43:21
Source code size: 332 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 6 / 11
Referenced in: [show references]

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