Skip to content

Commit

Permalink
update policy grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
khieta committed Sep 23, 2024
1 parent afc3c87 commit 13504f9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/collections/_policies/syntax-grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Member ::= Primary {Access}
## `Annotation` {#grammar-annotation}

```
Annotation ::= '@'IDENT'('STR')'
Annotation ::= '@'ANYIDENT'('STR')'
```

## `Access` {#grammar-access}
Expand Down Expand Up @@ -214,10 +214,16 @@ RecInits ::= (IDENT | STR) ':' Expr {',' (IDENT | STR) ':' Expr}
RELOP ::= '<' | '<=' | '>=' | '>' | '!=' | '==' | 'in'
```

## `ANYIDENT` {#grammar-any-ident}

```
ANYIDENT ::= ['_''a'-'z''A'-'Z']['_''a'-'z''A'-'Z''0'-'9']*
```

## `IDENT` {#grammar-ident}

```
IDENT ::= ['_''a'-'z''A'-'Z']['_''a'-'z''A'-'Z''0'-'9']* - RESERVED
IDENT ::= ANYIDENT - RESERVED
```

## `STR` {#grammar-str}
Expand Down Expand Up @@ -253,7 +259,7 @@ INT ::= '-'? ['0'-'9']+
## `RESERVED` {#grammar-reserved}

```
RESERVED ::= BOOL | 'if' | 'then' | 'else' | 'in' | 'like' | 'has' | '__cedar'
RESERVED ::= BOOL | 'if' | 'then' | 'else' | 'in' | 'like' | 'has' | 'is' | '__cedar'
```

## `VAR` {#grammar-var}
Expand Down

0 comments on commit 13504f9

Please sign in to comment.