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

23
LINES

< > TinyBrain | #1008910 - CtxContext - context for evaluating ctx conditions

JavaX fragment (include)

sclass CtxContext {
  // general for bot
  SS regexpMacros, globals;

  // per session
  S activeRule, activeAnalyzer;
  SS vars = new HashMap;
  
  S input;
  new StringBuilder newOutput;
  
  bool jumpaway;
  S nextRule;
  int safetyCounter; // number of rules applied in step
  new L<S> rulesFired;
  new L<S> urlsToOpen;
  new L<S> matches; // MATCH1...
  
  void setActiveRule(S rule) {
    activeRule = rule;
    print("New active rule: " + rule);
  }
}

download  show line numbers  debug dex   

Travelled to 3 computer(s): cfunsshuasjs, onxytkatvevr, tvejysmllsmz

No comments. add comment

Snippet ID: #1008910
Snippet name: CtxContext - context for evaluating ctx conditions
Eternal ID of this version: #1008910/21
Text MD5: 29787331ff92979185ca734e4c033b68
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-25 19:38:11
Source code size: 481 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 40 / 235
Version history: 20 change(s)
Referenced in: [show]