Rule constructor

const Rule({
  1. required RegExp pattern,
  2. required int precedence,
})

Instantiates a rule with an pattern and the precedence it has over other rules.

Implementation

const Rule({required this.pattern, required int precedence})
    : _precedence = precedence;