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

9
LINES

< > BotCompany Repo | #1008873 // findWoodyRuleInSource

JavaX fragment (include)

static WoodyRule findWoodyRuleInSource(S src, S ruleName) {
  L<S> lines = lines(src);
  for i, S s over lines: {
    L<S> tok = javaTok(s);
    if (jfind(tok, "RULE " + ruleName) >= 0)
      ret getWoodyRuleFromSource(lines, i);
  }
  null;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008873
Snippet name: findWoodyRuleInSource
Eternal ID of this version: #1008873/7
Text MD5: 4aafe5a83df730d200db3d2556d11ebc
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-15 18:03:27
Source code size: 251 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 308 / 367
Version history: 6 change(s)
Referenced in: [show references]