RuleContainer
in package
FinalYes
Table of Contents
Properties
- $productions : array<string|int, Rule<string|int, Node>>
Methods
- __construct() : mixed
- apply() : void
- merge() : self
- push() : void
Properties
$productions
private
array<string|int, Rule<string|int, Node>>
$productions
Methods
__construct()
public
__construct(Rule<string|int, Node> ...$productions) : mixed
Parameters
apply()
public
apply(BlockContext $blockContext, CompoundNode<string|int, Node> $on) : void
Parameters
- $blockContext : BlockContext
- $on : CompoundNode<string|int, Node>
merge()
public
merge(RuleContainer $productions) : self
Parameters
- $productions : RuleContainer
Return values
selfpush()
public
push(Rule<string|int, Node> $production) : void