dumpDFA method

void dumpDFA()
inherited

For debugging and other purposes. */

Implementation

void dumpDFA() {
  var seenOne = false;
  for (var d = 0; d < interpreter!.decisionToDFA.length; d++) {
    final dfa = interpreter!.decisionToDFA[d];
    if (dfa.states.isNotEmpty) {
      if (seenOne) print('');
      print('Decision ${dfa.decision}:');
      stdoutWrite(dfa.toString(vocabulary));
      seenOne = true;
    }
  }
}