Пример #1
0
        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);
        }
Пример #2
0
        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);
        }