Download Jar. Libraryless. Click here for Pure Java version (6291L/45K).
1 | !7 |
2 | |
3 | p-exp { |
4 | S src = getServerTranspilationWithoutLibs(#1016478); |
5 | LS tok = javaTok(src); |
6 | LL<S> classes = |
7 | //allClasses(tok); |
8 | innerClassesOfMain(tok); |
9 | print(l(classes)); |
10 | L<IntRange> ranges = magicSubListsToIntRanges(tok, classes); |
11 | int iTok = 0; |
12 | for (IntRange r : ranges) { |
13 | print("rest."); |
14 | printIndent(shorten(joinSubList(tok, iTok, r.start))); |
15 | print("Class " + getClassDeclarationName(subList(tok, r))); |
16 | iTok = r.end; |
17 | } |
18 | print("rest."); |
19 | printIndent(shorten(joinSubList(tok, iTok))); |
20 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018237 |
Snippet name: | Split source into classes & rest [OK] |
Eternal ID of this version: | #1018237/10 |
Text MD5: | 708d7a38f047cbd29b18af4fdaf1229d |
Transpilation MD5: | 078a304ca1e8672d7ba8bfdb42629c3f |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-11 17:43:20 |
Source code size: | 543 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 389 / 957 |
Version history: | 9 change(s) |
Referenced in: | [show references] |