Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1028854 // too_flexMatchRulesToTransformInput

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (6761L) is out of date.

svoid too_flexMatchRulesToTransformInput(TransformersOnObjects too) {
  too.addTransformer(func(BasicLogicRule<S> r) {
    if (containsDollarVars(r.lhs))
      too.addTransformer(func(IInput i) {
        S s = cast i!;
        for (SS map : flexMatchDollarVarsIC_all(r.lhs, s))
          too.add(TransformedInput(replaceVars(r.rhs, map)));
        null;
      });
    null;
  });
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028854
Snippet name: too_flexMatchRulesToTransformInput
Eternal ID of this version: #1028854/3
Text MD5: 626e389b5d435263868763acf721e3a4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-12 12:46:41
Source code size: 392 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 230 / 310
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)