StatementProps

ROLE

Config::BINDish::Grammar::StatementProps - standard statement properties

DESCRIPTION

This role defines properties common to all pre-declarable statements.

ATTRIBUTES

SetHash:D() $.in

Set of block IDs in which a statement can be used.

Bool:D $.autovivified

When True this statement declaration was autovivified by the parser. This can happen, for example, when an option has a block referenced in its $.in and the block is not explicitly declared.

METHODS

ACCEPTS(Config::BINDish::Grammar::Context:D $ctx)

Checks if this statement can be used in context $ctx by locating the nearest enclosing block context and verifying if the block is mentioned in statement's $.in set. Always matches if $.in is empty.

Bool()

Coerces a property object into False. See method get in Config::BINDish::AST::Blockish for details about default values.

SEE ALSO

COPYRIGHT

(c) 2023, Vadim Belman <[email protected]>

LICENSE

Artistic License 2.0

See the LICENSE file in this distribution.

Config::BINDish v0.0.18

Extensible BIND9-like Configuration Files Support

Authors

  • Vadim Belman

License

Artistic-2.0

Dependencies

AttrX::Mooish:auth<zef:vrurg>:ver<1.0.0+>:api<1.0.*>IP::AddrTest::Async:auth<zef:vrurg>:ver<0.1.2+>

Test Dependencies

Provides

  • Config::BINDish
  • Config::BINDish::AST
  • Config::BINDish::Actions
  • Config::BINDish::Expandable
  • Config::BINDish::Grammar
  • Config::BINDish::INET
  • Config::BINDish::Ops
  • Config::BINDish::Test
  • Config::BINDish::X

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.