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

25
LINES

< > BotCompany Repo | #1028376 // Transfomers Spike 1

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (4872L/23K).

!7

cprint {
  transient new TransformersOnObjects too;
  
  switchable long maxSteps = 1000;

  start-thread {
    too.addObject(parseBasicLogicRule(
      [[Cutting Budgets on Important Emergency Vehicle Bridges
      => Cutting Budgets on {Important Emergency Vehicle Bridges}]]));

    too.addObject(parseBasicLogicRule("Important * => *"));

    too.addTransformer(func(BasicLogicRule rule) { toStringOpt(rule.rhs) });
    too.addTransformer(func(S s) { replaceCurlyBracedWithStars(s) });
    too.addTransformer(func(S s) { extractBracketedTokens(s) });
    
    too.addTransformer(func(BasicLogicRule rule) { basicLogicRuleToPair(rule) });

    stepAllWithStats(too, maxSteps);

    pnlWithClasses(too.getObjects());
  }
}

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: #1028376
Snippet name: Transfomers Spike 1
Eternal ID of this version: #1028376/19
Text MD5: 75d63e8f84e9486649d10ed15ad1a40e
Transpilation MD5: 6861efa9c7810422e3cd52c85560083f
Author: stefan
Category:
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-15 21:05:49
Source code size: 729 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 154 / 579
Version history: 18 change(s)
Referenced in: