public static IReduceExpr[] CreateArgs(this ITerminals terminals, ReduceContext context) { var result = new IReduceExpr[terminals.Length]; for (var i = 0; i < result.Length; i++) { result[i] = terminals[i].Reduce(context); } return(result); }
public ReduceContext(TypeTable typeTable, ITerminals terminals, ActionExpr action, INoAction noAction, int id) { this.typeTable = typeTable; this.terminals = terminals; this.action = action; this.noAction = noAction; Id = id; }
public Production(ParseTree.Identifier name, int id, int ruleId, ITerminals right, IReduction reduction) { this.name = name; Id = id; RuleId = ruleId; Right = right; this.reduction = reduction; }