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

18
LINES

< > TinyBrain | #1008918 - ctxProcessAction

JavaX fragment (include)

static void ctxProcessAction(S body) {
  ctxProcessAction(javaTok(body));
}

static void ctxProcessAction(L<S> tok) {
  while (ctxProcessIf(tok)) {}
  if (l(tok) <= 1) ret;
  
  // find end of statement
  int j = indexOf(tok, ";");
  j = j < 0 ? l(tok)-1 : j+1;
  
  L<S> rest = newSubList(tok, j);
  tok = newSubList(tok, 0, j+1);
  
  ctxProcessStatement(tok);
  ctxProcessAction(rest);
}

Author comment

Began life as a copy of #1008896

download  show line numbers  debug dex   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

No comments. add comment

Snippet ID: #1008918
Snippet name: ctxProcessAction
Eternal ID of this version: #1008918/21
Text MD5: d152fdd224efd2f5c03af40b1f212a64
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-01 19:13:30
Source code size: 407 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 55 / 73
Version history: 20 change(s)
Referenced in: [show]