public override Pattern Regen(Grammar g) { return(new PatternRef(Name)); var r = new PatternRef(Name); if (r.RefsComputed = RefsComputed) { r.Target = g[Name]; } return(r); }
public override void Emit(Grammar g) { var c = g.CodeGen; c.GotoFalse(c["o"] != c["l"], Fail); // Look for a term var term = new PatternRef("term"); term.Emit(g); }