Class SleighProgramCompiler.ErrorCollectingPcodeParser

java.lang.Object
ghidra.pcodeCPort.slgh_compile.PcodeCompile
ghidra.program.model.lang.PcodeParser
ghidra.pcode.exec.SleighProgramCompiler.ErrorCollectingPcodeParser
Enclosing class:
SleighProgramCompiler

public static class SleighProgramCompiler.ErrorCollectingPcodeParser extends PcodeParser
A p-code parser that provides programmatic access to error diagnostics.
  • Constructor Details

    • ErrorCollectingPcodeParser

      public ErrorCollectingPcodeParser(SleighLanguage language)
  • Method Details

    • reportError

      public void reportError(Location location, String msg)
      Overrides:
      reportError in class ghidra.pcodeCPort.slgh_compile.PcodeCompile
    • reportWarning

      public void reportWarning(Location location, String msg)
      Overrides:
      reportWarning in class ghidra.pcodeCPort.slgh_compile.PcodeCompile
    • compilePcode

      public ConstructTpl compilePcode(String pcodeStatements, String srcFile, int srcLine) throws SleighException
      Description copied from class: PcodeParser
      Compile pcode semantic statements.
      Overrides:
      compilePcode in class PcodeParser
      Parameters:
      pcodeStatements - is the raw source to parse
      srcFile - source filename from which pcodeStatements came (
      srcLine - line number in srcFile corresponding to pcodeStatements
      Returns:
      ConstructTpl. A null may be returned or an exception thrown if parsing/compiling fails (see application log for errors).
      Throws:
      SleighException - pcode compile error