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

5
LINES

< > BotCompany Repo | #1023398 // tok_moduleNameFromJavaXSource

JavaX fragment (include)

sS tok_moduleNameFromJavaXSource(S src) {
  LS tok = javaTok(src);
  int i = jfind_any(tok, "module <id>", "cmodule <id>");
  ret i < 0 ? null : tok.get(i+2);
}

Author comment

Began life as a copy of #1018678

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023398
Snippet name: tok_moduleNameFromJavaXSource
Eternal ID of this version: #1023398/1
Text MD5: f9e39213729311e18143dc8e1e10e53f
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-17 20:01:05
Source code size: 166 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 152 / 179
Referenced in: [show references]