Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: more typos

...

An event map has keys "domain" and "typename" for the domain and type of the event, and if needed, a key "attrs" whose value is an array of attribute names.

...

Code Block
linenumberstrue
ruleset test {
  meta {
    shares __testing, entry
  }
  global {
    __testing = { "queries":
      [ { "name": "__testing" }
      , { "name": "entry", "args": [ "key" ] }
      , { "name": "entry" }
      ] , "events":
      [ //{ "domain": "d1", "typename": "t1" }
      //, { "domain": "d2", "typename": "t2", "attrs": [ "a1", "a2" ] }
      ]
    }
    truthy = "truthy"
    falsy = "falsy"
    entry = function(key){
      {
        "key": key,
        "key.isnull()": key.isnull(),
        "key => truthy | falsy": key => truthy | falsy
      }
    }
  }
}

...