fiddling with grammars but haven't actually tested whether any portion of them are right

This commit is contained in:
drudge 2023-11-26 20:51:20 -08:00
parent b2b09cbf64
commit b5a2925a24

12
scratchpad.raku Normal file
View 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}
}