Instantiates a rule with an pattern and the precedence it has over other rules.
precedence
const Rule({required this.pattern, required int precedence}) : _precedence = precedence;