Browse Source

chore: Adding the beginning of a readme file

Matthias Ladkau 3 years ago
parent
commit
c351cd6d04
1 changed files with 21 additions and 0 deletions
  1. 21 0
      lang/ecal/README.md

+ 21 - 0
lang/ecal/README.md

@@ -0,0 +1,21 @@
+ECAL - Event Condition Action Language
+--
+ECAL is a language to create rule based system which react to events provided that a defined condition holds:
+
+Event -> Condition -> Action
+
+Rules are defined as event sinks and have the following form:
+
+sink "mysink" 
+    "
+    A comment describing the sink.
+    "
+    kindmatch [ "foo", a.b.bar ],
+    scopematch [ "data.read", "data.write" ],
+    statematch { a : 1, b : NULL },
+    priority 0,
+    suppresses [ "myothersink" ]
+    {
+      <ECAL Code>
+    }
+