Rule struct
A rule of a production, which is one of its alternatives.
Public variables
-
not_
null<const StatementBlockSymbol*> ruleBlock - The statement block that scopes the rule, holding the variables that refer to the values produced by its items.
-
std::
span<const ProdBase*const > prods - The productions that make up the rule, in order.
- const Expression* weightExpr
- The weight of the rule, if one was given.
- const Expression* randJoinExpr
- The bias of a rand join, if one was given.
-
std::
optional<CodeBlockProd> codeBlock - The code block that follows the weight, if there is one.
- bool isRandJoin
- Whether the rule is a rand join.