SetContextTrans() public méthode

public SetContextTrans ( Node p ) : void
p Node
Résultat void
Exemple #1
0
        void TokenTerm(out Graph g)
        {
            Graph g2;

            TokenFactor(out g);
            while (StartOf(7))
            {
                TokenFactor(out g2);
                tab.MakeSequence(g, g2);
            }
            if (la.kind == 38)
            {
                Get();
                Expect(30);
                TokenExpr(out g2);
                tab.SetContextTrans(g2.l); dfa.hasCtxMoves = true;
                tab.MakeSequence(g, g2);
                Expect(31);
            }
        }
Exemple #2
0
        void TokenTerm(out Graph g)
        {
            Graph g2;

            TokenFactor(out g);
            while (StartOf(7))
            {
                TokenFactor(out g2);
                tab.MakeSequence(g, g2);
            }
            if (la.kind == 38)
            {
                Get();
                Expect(30);
                Notify(11); // Coco-Plugin: notify parsercustomization
                TokenExpr(out g2);
                tab.SetContextTrans(g2.l); dfa.hasCtxMoves = true;
                tab.MakeSequence(g, g2);
                Expect(31);
            }
        }