示例#1
0
        public override int VisitOr(COr node)
        {
            ExtractSubgraphs(node, COr.CT_LEFT, COr.ContextNames);
            ExtractSubgraphs(node, COr.CT_RIGHT, COr.ContextNames);

            base.VisitOr(node);

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

            return(0);
        }
示例#2
0
        public override int VisitOr(COr node)
        {
            int context = m_parentContexts.Peek();
            CEmmitableCodeContainer rep = m_parents.Peek() as CEmmitableCodeContainer;

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

            rep.AddCode(" || ", context);

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

            return(0);
        }
示例#3
0
 public virtual T VisitOr(COr node)
 {
     return(VisitChildren(node));
 }