Ejemplo n.º 1
0
        public override int VisitMultiplication(CMultiplication node)
        {
            ExtractSubgraphs(node, CMultiplication.CT_LEFT, CMultiplication.ContextNames);
            ExtractSubgraphs(node, CMultiplication.CT_RIGHT, CMultiplication.ContextNames);

            base.VisitMultiplication(node);

            m_ostream.WriteLine("{0}->{1}", currentParent.M_GraphVizName, node.M_GraphVizName);

            return(0);
        }
Ejemplo n.º 2
0
        public override int VisitMultiplication(CMultiplication node)
        {
            int context = m_parentContexts.Peek();
            CEmmitableCodeContainer rep = m_parents.Peek();

            foreach (ASTVisitableElement child in
                     node.GetChildrenContext(CMultiplication.CT_LEFT))
            {
                Visit(child);
            }

            rep.AddCode("*", context);

            foreach (ASTVisitableElement child in node.GetChildrenContext(CMultiplication.CT_RIGHT))
            {
                Visit(child);
            }

            return(0);
        }
Ejemplo n.º 3
0
 public virtual T VisitMultiplication(CMultiplication node)
 {
     return(VisitChildren(node));
 }