This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Description
When a rule is simply equal to another rule, the generated rule returns itself instead of the other rule.
rule-a = ALPHA / DIGIT
rule-b = rule-a
// rule-a = ALPHA / DIGIT
func RuleA() operators.Operator {
return operators.Alts(
"rule-a",
core.ALPHA(),
core.DIGIT(),
)
}
// rule-b = rule-a
func RuleB() operators.Operator {
return RuleB() // NOTE - ERROR HERE - should be RuleA
}