skipMany function

State skipMany(
  1. State state
)

Implementation

State skipMany(State state) {
  const template = '''
while (true) {
  {{@state}}
}
{{@accept}}
''';
  const automaton = Automaton(
    accept: 'continue;',
    reject: 'break;',
    result: 'null',
    template: template,
  );
  const generator = AutomatonGenerator(automaton);
  final start = generator.generate('void', state);
  return start;
}