Skip to content

Instantly share code, notes, and snippets.

@zerosign
Created January 14, 2020 10:25
Show Gist options
  • Select an option

  • Save zerosign/b16749a6c78196c39c816c58f572241a to your computer and use it in GitHub Desktop.

Select an option

Save zerosign/b16749a6c78196c39c816c58f572241a to your computer and use it in GitHub Desktop.
dsl kinda language for rulesets
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