Uses 911K of libraries. Click here for Pure Java version (8206L/42K).
!7 cmodule SmartParser > DynTextArea { transient SingleComponentPanel scp; transient L<ExtS> parsed; visual jvsplit(super, jCenteredSection("Parsed", scp = singleComponentPanel(makeComponent()))); start { dm_watchFieldAndNow text(r parse); } void parse { setField(parsed := map getVarOpt(smartParser1_generic(text))); if (scp != null) scp.setComponent(makeComponent()); } JComponent makeComponent() { pnl(+parsed); ret jscroll(jTree_hideRoot(jDynamicTree( (O) parsed, o -> makeChildren(o), makeChildrenIsFast := true))); } Cl makeChildren(O o) { o = fullyUnpackVar(o); if (o cast Cl) ret o; if (o cast S) ret smartParser1_subParse(o); null; } }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025647 |
Snippet name: | Smart Parser Text Area [OK] |
Eternal ID of this version: | #1025647/26 |
Text MD5: | 17562dc7e8eed0cb8d767aed16d34d0e |
Transpilation MD5: | bc6b5dac5850cc449f8fa65e83ee7d96 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-19 14:30:56 |
Source code size: | 758 bytes / 31 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 241 / 8704 |
Version history: | 25 change(s) |
Referenced in: | #1025777 - Philosophy Bot Text Area [OK] |