static new Map<S, O> applyAlwaysRules_handlers; sbool applyAlwaysRules_step_debug; // for handlers static new ThreadLocal<S> applyAlwaysRules_ruleID; static void applyAlwaysRules_step() { L<LispStatement> statements = lispStatements_cloned(); if (applyAlwaysRules_step_debug) print("applyAlwaysRules_step: " + struct(statements)); for (LispStatement s : statements) { Lisp l = s.term; O handler = applyAlwaysRules_handlers.get(l.head); if (handler != null) { applyAlwaysRules_ruleID.set(s.globalID); if (applyAlwaysRules_step_debug) print("Calling handler for " + l.head); try { callF(handler, /*lispSingleChildOrFull*/(l)); } finally { applyAlwaysRules_ruleID.set(null); } } } }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008175 |
Snippet name: | applyAlwaysRules_step |
Eternal ID of this version: | #1008175/7 |
Text MD5: | 887537be706e07f6b9e080e912d086f3 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-07 00:27:51 |
Source code size: | 789 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 512 / 514 |
Version history: | 6 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |