Uses 911K of libraries. Click here for Pure Java version (8883L/46K).
1 | !7 |
2 | |
3 | cmodule InputInterpreter > DynTextArea { |
4 | S output; |
5 | transient ReliableSingleThread rstRunProgram = dm_rst(this, r runProgram); |
6 | transient JLabel lblStatus; |
7 | |
8 | visual jvsplit( |
9 | jCenteredSection("Input", super), |
10 | centerAndSouth( |
11 | jCenteredSection("Output", dm_textArea_scrollDown_readOnly output()), |
12 | withRightMargin(lblStatus = jRightAlignedLabel()))); |
13 | |
14 | start { |
15 | grabInterval = 1.0; |
16 | dm_watchFieldAndNow text(rstRunProgram); |
17 | } |
18 | |
19 | void runProgram { |
20 | temp tempMiniLoadingAnim(); |
21 | time { |
22 | LPair<S, SS> list = agiBlue_rules_gazelleZip(trim(text)); |
23 | setField(output := mapToLines(list, ruleAndMap -> |
24 | gazelle_deepReplaceVars(ruleAndMap.b, pairB(tok_splitAtDoubleArrow_pair(ruleAndMap.a))))); |
25 | } |
26 | main setText(lblStatus, lastTiming_formatted()); |
27 | } |
28 | } |
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: | 216 / 2090 |
Version history: | 3 change(s) |
Referenced in: | [show references] |