Created
January 14, 2020 10:25
-
-
Save zerosign/b16749a6c78196c39c816c58f572241a to your computer and use it in GitHub Desktop.
dsl kinda language for rulesets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sets Admin { | |
| use global.Admin; | |
| extend role.infra.Admin; | |
| user babel; | |
| } | |
| user babel { | |
| email "tower_babel@gmail.com"; | |
| email "babel@gmail.com"; | |
| } | |
| email(implicit C: Context)(value: Atom) :- | |
| edge(C, value, "email") | |
| allow request { | |
| client org.zerosign.client.Client, range of 10.10 .. 10.12; | |
| user level Admin; | |
| } | |
| // compile this all into graphs | |
| // list of target compilations : | |
| // - diffsets (graphdb redis) | |
| // - rulesets (embedded rulesets) | |
| // - minified IR terminals | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment