fiddling with grammars but haven't actually tested whether any portion of them are right
This commit is contained in:
parent
b2b09cbf64
commit
b5a2925a24
12
scratchpad.raku
Normal file
12
scratchpad.raku
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# Below is an example policy to test Policy structure against
|
||||||
|
my $rule = 'all aws_ebs_volume resources have required tag "foo" with required value "bar"';
|
||||||
|
|
||||||
|
grammar Policy {
|
||||||
|
regex TOP { <quantifier> }
|
||||||
|
regex quantifier {
|
||||||
|
|| any
|
||||||
|
|| all
|
||||||
|
|| \d
|
||||||
|
}
|
||||||
|
regex resource { \s \w \s resource[s?] \s}
|
||||||
|
}
|
Loading…
Reference in a new issue