-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new text syntax #60
Comments
on my side I think I still prefer the current version, I find it easier to read those symbols than text for some reasons.
mainly to ease auto formatting, I found out the following structure works quite well as it can be aligned nicely:
keywords in place of symbols already mess it up a bit:
wdyt ? |
I also prefer the current syntax. |
v2 now has a new syntax with a defined grammar #72 |
I'm simplifying the text syntax, but it can still be a bit confusing, so I'd lie to propose a different version, that's further from traditional datalog syntax.
I'd like to change from:
to
with
if
andand
case insensitive, so we can writeright(#authority, $1, #read) IF resource(#ambient, $1) AND owner(#ambient, $0, $1)
if it's easier to read without text highlightingAnd for caveats:
to
or another keyword, like
verify
,satisfy
,ensures
,assert
, etcFor constraints, instead of moving them to the end like this:
we would write:
And constraints could be anywhere in the rule's body, like this:
The text was updated successfully, but these errors were encountered: