Uses 911K of libraries. Click here for Pure Java version (8883L/46K).
!7 cmodule InputInterpreter > DynTextArea { S output; transient ReliableSingleThread rstRunProgram = dm_rst(this, r runProgram); transient JLabel lblStatus; visual jvsplit( jCenteredSection("Input", super), centerAndSouth( jCenteredSection("Output", dm_textArea_scrollDown_readOnly output()), withRightMargin(lblStatus = jRightAlignedLabel()))); start { grabInterval = 1.0; dm_watchFieldAndNow text(rstRunProgram); } void runProgram { temp tempMiniLoadingAnim(); time { LPair<S, SS> list = agiBlue_rules_gazelleZip(trim(text)); setField(output := mapToLines(list, ruleAndMap -> gazelle_deepReplaceVars(ruleAndMap.b, pairB(tok_splitAtDoubleArrow_pair(ruleAndMap.a))))); } main setText(lblStatus, lastTiming_formatted()); } }
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: | #1025850 |
Snippet name: | Input Interpreter [using AGI.blue rules, v1] |
Eternal ID of this version: | #1025850/4 |
Text MD5: | 0e593e05e503cc89328a198211aaa7e9 |
Transpilation MD5: | ce5e03be8d987ca020ca865727290aa0 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-27 13:18:45 |
Source code size: | 841 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 215 / 2088 |
Version history: | 3 change(s) |
Referenced in: | [show references] |