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

26
LINES

< > BotCompany Repo | #1001830 // New function adder (using tokenizers, developing)

JavaX translator [tags: use-pretranspiled]

Transpiled version (1423L) is out of date.

!747

m {
  p {
    L<S> tok = tokMainJavaTest();
    L<S> main = cloneList(findMainClass(tok));
    removeInnerClasses(main);
    main = javaTok(main);
    for (L<S> f : getFunctionNames(main))
      print("Function found: " + f);
    //saveMainJava(tok);
  }
  
  static L<S> tokMainJavaTest() {
    ret javaTok(loadSnippet("#2000584"));
  }
  
  static void removeInnerClasses(L<S> tok) {
    for (L<S> c : innerClasses(tok))
      clearAllTokens(c);
  }
  
  static L<S> getFunctionNames(L<S> tok) {
    // TODO
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001830
Snippet name: New function adder (using tokenizers, developing)
Eternal ID of this version: #1001830/1
Text MD5: 3d0b8b1c94cc2a6c77745083aef504f8
Author: stefan
Category: javax
Type: JavaX translator
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-21 18:33:53
Source code size: 546 bytes / 26 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 554 / 624
Referenced in: #3000190 - Answer for stefanreich(>> t 20 questions)
#3000382 - Answer for ferdie (>> t = 1, f = 0)