Uses 2039K of libraries. Click here for Pure Java version (14410L/100K).
1 | !7 |
2 | |
3 | sclass JavaParserModule > DynModule {
|
4 | transient SimpleLiveValue<S> output = new(S); |
5 | transient SimpleLiveValue<S> input = new(S); |
6 | transient ReliableSingleThread rst = new(r parse); |
7 | |
8 | visualize { ret jLiveValueWordWrapTypeWriterTextArea(output); }
|
9 | |
10 | start { input.onChange(rTrigger(rst)); }
|
11 | |
12 | void update { input.set(dm_interestingString()); }
|
13 | |
14 | void parse {
|
15 | output.set("Parsing...");
|
16 | try {
|
17 | javaParseCompilationUnit(input!); |
18 | output.set("Text parses as Java compilation unit");
|
19 | } catch e {
|
20 | output.set(firstLine(getInnerMessage(e))); |
21 | } |
22 | } |
23 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1015810 |
| Snippet name: | Dyn Module: Java Parser |
| Eternal ID of this version: | #1015810/15 |
| Text MD5: | 749c863e18f2d185ecc9598175ffe4bb |
| Transpilation MD5: | b08f78283f2150ae5c8c7e44b69acd9a |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-14 14:50:14 |
| Source code size: | 607 bytes / 23 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 559 / 1020 |
| Version history: | 14 change(s) |
| Referenced in: | [show references] |