Class ANTLRUtil

java.lang.Object
ghidra.sleigh.grammar.ANTLRUtil

public class ANTLRUtil extends Object
  • Constructor Details

    • ANTLRUtil

      public ANTLRUtil()
  • Method Details

    • debugNodeStream

      public static void debugNodeStream(org.antlr.runtime.tree.BufferedTreeNodeStream nodes, PrintStream out)
    • debugTokenStream

      public static void debugTokenStream(org.antlr.runtime.CommonTokenStream tokens, PrintStream out)
    • debugTree

      public static void debugTree(org.antlr.runtime.tree.Tree tree, PrintStream out)
    • getLine

      public static String getLine(Reader reader, int lineno) throws IOException
      Throws:
      IOException
    • getLine

      public static String getLine(LineArrayListWriter writer, int lineno) throws IOException
      Throws:
      IOException
    • generateArrow

      public static String generateArrow(int charPositionInLine)
    • tabCompensate

      public static int tabCompensate(String line, int charPositionInLine)