Ejemplo n.º 1
0
        public override void PrintTrees(int depth)
        {
            for (int i = 0; i < depth; i++)
            {
                Console.Write("\t");
            }
            Console.WriteLine($"{Token.Text}: {this.GetType()}");

            ConditionalValue.PrintTrees(depth + 1);

            foreach (ASTNode child in Children)
            {
                child.PrintTrees(depth + 1);
            }
        }