toNfa method

  1. @override
Nfa toNfa()
override

Implementation

@override
Nfa toNfa() {
  final start = NfaState(isEnd: false);
  final end = NfaState(isEnd: true);
  start.transitions[codePoint] = end;
  return Nfa(start: start, end: end);
}