Exemplo n.º 1
0
        public MathFuncNode VisitChildren(Antlr4.Runtime.Tree.IRuleNode node)
        {
            MathFuncNode firstNode = null;

            for (int i = 0; i < node.ChildCount; i++)
            {
                MathFuncNode result = Visit(node.GetChild(i));
                if (i == 0)
                {
                    firstNode = result;
                }
            }
            return(firstNode);
        }
Exemplo n.º 2
0
 //We bail out whenever we already know that the module is non-empty.
 protected override bool ShouldVisitNextChild(Antlr4.Runtime.Tree.IRuleNode node, bool currentResult)
 {
     return(currentResult);
 }
 public double VisitChildren(Antlr4.Runtime.Tree.IRuleNode node)
 {
     throw new NotImplementedException();
 }