Strictness
NAME
Config::BINDish::Grammar::Strictness - strict mode options
DESCRIPTION
This class defines what parts of the parser should operate in strict mode. See ATTRIBUTES.
The most simple way to initialize an instance of this class is to coerce it from a Bool value:
Config::BINDish::Grammar::Strictness(True); # All strictFrom the perspective of creating a new grammar it would be done as:
Config::BINDish::Grammar.parse(..., :strict); # All strict
Config::BINDish::Grammar.parse(..., :!strict); # All non-strictATTRIBUTES
Bool:D $.syntax = False
When set the parser will require a semi-colon (;) after all statements. Otherwise semi-colon is optional after block's closing curly brace, and after an option if it is followed by a closing brace. The following example is ok when syntax is non-strict:
block {
option "foo"
}Otherwise it has to be like this:
block {
option "foo";
};Bool:D $.options = False
This attribute determines if all options have to be explicitly pre-declared.
See method declare-options in Config::BINDish::Grammar.
Bool:D $.blocks = False
This attribute determines if all block types have to be explicitly pre-declared.
See method declare-blocks in Config::BINDish::Grammar.
SEE ALSO
Config::BINDish, Config::BINDish::Grammar
AUTHOR
Vadim Belman [email protected]