public LALRStateRecord(Record record) { if (record.Entries.Count < 3) throw new CGTContentException("Invalid number of entries for LALR state"); byte header = record.Entries[0].ToByteValue(); if (header != 76) //'L' throw new CGTContentException("Invalid LALR state header"); this.index = record.Entries[1].ToIntValue(); //skip empty reserved entry actionSubRecords = new ActionSubRecordCollection(record,3); }
public LALRStateRecord(Record record) { if (record.Entries.Count < 3) { throw new CGTContentException("Invalid number of entries for LALR state"); } byte header = record.Entries[0].ToByteValue(); if (header != 76) //'L' { throw new CGTContentException("Invalid LALR state header"); } this.index = record.Entries[1].ToIntValue(); //skip empty reserved entry actionSubRecords = new ActionSubRecordCollection(record, 3); }