Class DebugVisitor

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
io.github.douira.glsl_transformer.GLSLParserBaseVisitor<Void>
io.github.douira.glsl_transformer.DebugVisitor
All Implemented Interfaces:
GLSLParserVisitor<Void>, org.antlr.v4.runtime.tree.ParseTreeVisitor<Void>

public class DebugVisitor extends GLSLParserBaseVisitor<Void>
The debug visitor prints the tree and some other information to the console.
  • Constructor Details

    • DebugVisitor

      public DebugVisitor()
      Creates a new debug visitor
    • DebugVisitor

      public DebugVisitor(int maxDepth)
      Creates a new debug visitor but with a maximum tree printing depth.
      Parameters:
      maxDepth - The maximum depth to which the tree will be printed
  • Method Details

    • visitChildren

      public Void visitChildren(org.antlr.v4.runtime.tree.RuleNode node)
      Specified by:
      visitChildren in interface org.antlr.v4.runtime.tree.ParseTreeVisitor<Void>
      Overrides:
      visitChildren in class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<Void>