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

10
LINES

< > BotCompany Repo | #1025382 - tok_metaTransformNow - collect & run meta-transformNow { ... } blocks

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

Libraryless. Click here for Pure Java version (5378L/35K).

svoid tok_metaTransformNow(LS tok) {
  int i = -1;
  while ((i = jfind(tok, i+1, "meta-transformNow {")) >= 0) {
    int iOpening = indexOf(tok, i, "{");
    int iClosing = findEndOfBracketPart(tok, iOpening)-1;
    S code = joinSubList(tok, iOpening+2, iClosing-1);
    clearTokens_reTok(tok, i, iClosing+1);
    tok_runMetaTransformer(tok, code);
  }
}

Author comment

Began life as a copy of #1025379

download  show line numbers  debug dex   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1025382
Snippet name: tok_metaTransformNow - collect & run meta-transformNow { ... } blocks
Eternal ID of this version: #1025382/6
Text MD5: 57ce28501a56c29f0662cabd9173c5b4
Transpilation MD5: 0559efa3f6cb2b7660b1209f6512c855
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-12-15 22:53:14
Source code size: 363 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 27 / 50
Version history: 5 change(s)
Referenced in: [show references]

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