public override bool Equals(object other) { LR1ParsingTableCell cell0 = (LR1ParsingTableCell)other; return(cell0.Action.Equals(Action) && TargetState == cell0.TargetState); }
protected override void MakeTable_SetReduceState(int state, string symbol, int rev) { actionTable[state][symbol] = new LR1ParsingTableCell(TableCellAction.Reduce, rev); }
protected override void MakeTable_SetShiftState(int state, string symbol, int target) { actionTable[state][symbol] = new LR1ParsingTableCell(TableCellAction.Shift, target); }
protected override void MakeTable_SetAcceptState(int state, string symbol) { actionTable[state][symbol] = new LR1ParsingTableCell(TableCellAction.Accept, 0); }