Returns the number of byte classes required to discriminate transitions in each state. invariant: num_byte_classes() == len(State.next)
(&self)
| 1546 | /// |
| 1547 | /// invariant: num_byte_classes() == len(State.next) |
| 1548 | fn num_byte_classes(&self) -> usize { |
| 1549 | // We add 1 to account for the special EOF byte. |
| 1550 | (self.prog.byte_classes[255] as usize + 1) + 1 |
| 1551 | } |
| 1552 | |
| 1553 | /// Given an input byte or the special EOF sentinel, return its |
| 1554 | /// corresponding byte class. |