initialize method

void initialize(
  1. Grammar grammar
)

Implementation

void initialize(Grammar grammar) {
  final rules = grammar.rules;
  _hasModifications = true;
  while (_hasModifications) {
    _hasModifications = false;
    for (final rule in rules) {
      final expression = rule.expression;
      _setRule(expression, rule);
      expression.accept(this);
    }
  }
}