예제 #1
0
        public override bool Equals(object other)
        {
            LR1ParsingTableCell cell0 = (LR1ParsingTableCell)other;

            return(cell0.Action.Equals(Action) && TargetState == cell0.TargetState);
        }
예제 #2
0
 protected override void MakeTable_SetReduceState(int state, string symbol, int rev)
 {
     actionTable[state][symbol] = new LR1ParsingTableCell(TableCellAction.Reduce, rev);
 }
예제 #3
0
 protected override void MakeTable_SetShiftState(int state, string symbol, int target)
 {
     actionTable[state][symbol] = new LR1ParsingTableCell(TableCellAction.Shift, target);
 }
예제 #4
0
 protected override void MakeTable_SetAcceptState(int state, string symbol)
 {
     actionTable[state][symbol] = new LR1ParsingTableCell(TableCellAction.Accept, 0);
 }