Class PreProcessor

java.lang.Object
ghidra.app.util.cparser.CPP.PreProcessor
All Implemented Interfaces:
PreProcessorConstants

public class PreProcessor extends Object implements PreProcessorConstants
  • Field Details

  • Constructor Details

  • Method Details

    • verboseLevel

      public int verboseLevel()
    • curFileStackTop

      public String curFileStackTop()
    • getDefinitions

      public DefineTable getDefinitions()
    • getDef

      public ghidra.app.util.cparser.CPP.PreProcessor.PPToken getDef(ghidra.app.util.cparser.CPP.PreProcessor.PPToken def)
    • getDef

      public String getDef(String name)
    • isDef

      public boolean isDef(ghidra.app.util.cparser.CPP.PreProcessor.PPToken def)
    • isArg

      public boolean isArg(ghidra.app.util.cparser.CPP.PreProcessor.PPToken arg)
    • addIncludePath

      public void addIncludePath(String path)
    • addIncludePaths

      public void addIncludePaths(String[] paths)
    • getNumericType

      public int getNumericType(String val)
    • getDoubleValue

      public Double getDoubleValue(String val)
    • getParseMessages

      public String getParseMessages()
    • didParseSucceed

      public boolean didParseSucceed()
    • setArgs

      public void setArgs(String[] args) throws ParseException
      Throws:
      ParseException
    • setOutputStream

      public void setOutputStream(OutputStream fos)
    • parse

      public boolean parse(String filename) throws ParseException
      Throws:
      ParseException
    • setMonitor

      public void setMonitor(TaskMonitor monitor)
    • main

      public static void main(String[] args)
    • Input

      public final void Input() throws ParseException
      Throws:
      ParseException
    • TranslationUnit

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken TranslationUnit() throws ParseException
      Throws:
      ParseException
    • NoMas

      public final void NoMas() throws ParseException
      Throws:
      ParseException
    • Group

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken Group() throws ParseException
      Throws:
      ParseException
    • GroupPart

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken GroupPart() throws ParseException
      Throws:
      ParseException
    • ControlLine

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken ControlLine() throws ParseException
      Throws:
      ParseException
    • IFSection

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken IFSection() throws ParseException
      Throws:
      ParseException
    • IFGroup

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken IFGroup() throws ParseException
      Throws:
      ParseException
    • IfCondition

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken IfCondition() throws ParseException
      Throws:
      ParseException
    • ElseIfCondition

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken ElseIfCondition() throws ParseException
      Throws:
      ParseException
    • Include

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken Include() throws ParseException
      Throws:
      ParseException
    • LineInfo

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken LineInfo() throws ParseException
      Throws:
      ParseException
    • Define

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken Define() throws ParseException
      Throws:
      ParseException
    • UnDef

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken UnDef() throws ParseException
      Throws:
      ParseException
    • MacroArgs

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken MacroArgs() throws ParseException
      Throws:
      ParseException
    • MacroVals

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken MacroVals() throws ParseException
      Throws:
      ParseException
    • Pragma

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken Pragma() throws ParseException
      Throws:
      ParseException
    • IfDef

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken IfDef() throws ParseException
      Throws:
      ParseException
    • IfDefExpr

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken IfDefExpr() throws ParseException
      Throws:
      ParseException
    • IfNDef

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken IfNDef() throws ParseException
      Throws:
      ParseException
    • IfNDefExpr

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken IfNDefExpr() throws ParseException
      Throws:
      ParseException
    • Error

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken Error() throws ParseException
      Throws:
      ParseException
    • Warning

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken Warning() throws ParseException
      Throws:
      ParseException
    • Info

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken Info() throws ParseException
      Throws:
      ParseException
    • EndIf

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken EndIf() throws ParseException
      Throws:
      ParseException
    • Else

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken Else() throws ParseException
      Throws:
      ParseException
    • If

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken If() throws ParseException
      Throws:
      ParseException
    • ElIf

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken ElIf() throws ParseException
      Throws:
      ParseException
    • Values

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken Values() throws ParseException
      Throws:
      ParseException
    • QuotedValue

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken QuotedValue() throws ParseException
      Throws:
      ParseException
    • Text

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken Text() throws ParseException
      Throws:
      ParseException
    • NewLines

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken NewLines() throws ParseException
      Throws:
      ParseException
    • QuotedText

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken QuotedText() throws ParseException
      Throws:
      ParseException
    • CompoundConditionalExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken CompoundConditionalExpression() throws ParseException
      Throws:
      ParseException
    • CompoundAndExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken CompoundAndExpression() throws ParseException
      Throws:
      ParseException
    • CompoundOrExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken CompoundOrExpression() throws ParseException
      Throws:
      ParseException
    • ConditionalExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken ConditionalExpression() throws ParseException
      Throws:
      ParseException
    • LogicalOrExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken LogicalOrExpression() throws ParseException
      Throws:
      ParseException
    • LogicalAndExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken LogicalAndExpression() throws ParseException
      Throws:
      ParseException
    • EqualityExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken EqualityExpression() throws ParseException
      Throws:
      ParseException
    • InEqualityExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken InEqualityExpression() throws ParseException
      Throws:
      ParseException
    • RelationalExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken RelationalExpression() throws ParseException
      Throws:
      ParseException
    • LessExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken LessExpression() throws ParseException
      Throws:
      ParseException
    • LessThanOrEqualExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken LessThanOrEqualExpression() throws ParseException
      Throws:
      ParseException
    • GreaterThanOrEqualExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken GreaterThanOrEqualExpression() throws ParseException
      Throws:
      ParseException
    • GreaterThanExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken GreaterThanExpression() throws ParseException
      Throws:
      ParseException
    • LogOr

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken LogOr() throws ParseException
      Throws:
      ParseException
    • LogAnd

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken LogAnd() throws ParseException
      Throws:
      ParseException
    • EqualTo

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken EqualTo() throws ParseException
      Throws:
      ParseException
    • NotEqualTo

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken NotEqualTo() throws ParseException
      Throws:
      ParseException
    • LessThan

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken LessThan() throws ParseException
      Throws:
      ParseException
    • LessThanOrEqual

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken LessThanOrEqual() throws ParseException
      Throws:
      ParseException
    • GreaterThan

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken GreaterThan() throws ParseException
      Throws:
      ParseException
    • GreaterThanOrEqual

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken GreaterThanOrEqual() throws ParseException
      Throws:
      ParseException
    • Qmark

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken Qmark() throws ParseException
      Throws:
      ParseException
    • ElseMark

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken ElseMark() throws ParseException
      Throws:
      ParseException
    • Assertion

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken Assertion() throws ParseException
      Throws:
      ParseException
    • Expression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken Expression() throws ParseException
      Throws:
      ParseException
    • InclusiveORExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken InclusiveORExpression() throws ParseException
      Throws:
      ParseException
    • ExclusiveORExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken ExclusiveORExpression() throws ParseException
      Throws:
      ParseException
    • ANDExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken ANDExpression() throws ParseException
      Throws:
      ParseException
    • ShiftExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken ShiftExpression() throws ParseException
      Throws:
      ParseException
    • AdditiveExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken AdditiveExpression() throws ParseException
      Throws:
      ParseException
    • MultiplicativeExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken MultiplicativeExpression() throws ParseException
      Throws:
      ParseException
    • UnaryExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken UnaryExpression() throws ParseException
      Throws:
      ParseException
    • LogNegation

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken LogNegation() throws ParseException
      Throws:
      ParseException
    • ValueExpression

      public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken ValueExpression() throws ParseException
      Throws:
      ParseException
    • ReInit

      public void ReInit(InputStream stream)
      Reinitialise.
    • ReInit

      public void ReInit(InputStream stream, String encoding)
      Reinitialise.
    • ReInit

      public void ReInit(Reader stream)
      Reinitialise.
    • ReInit

      public void ReInit(PreProcessorTokenManager tm)
      Reinitialise.
    • getNextToken

      public final Token getNextToken()
      Get the next Token.
    • getToken

      public final Token getToken(int index)
      Get the specific Token.
    • generateParseException

      public ParseException generateParseException()
      Generate ParseException.
    • enable_tracing

      public final void enable_tracing()
      Enable tracing.
    • disable_tracing

      public final void disable_tracing()
      Disable tracing.