Class PreProcessor

    • Constructor Detail

      • PreProcessor

        public PreProcessor​(java.io.InputStream stream)
        Constructor with InputStream.
      • PreProcessor

        public PreProcessor​(java.io.InputStream stream,
                            java.lang.String encoding)
        Constructor with InputStream and supplied encoding
      • PreProcessor

        public PreProcessor​(java.io.Reader stream)
        Constructor.
    • Method Detail

      • verboseLevel

        public int verboseLevel()
      • curFileStackTop

        public java.lang.String curFileStackTop()
      • getDef

        public ghidra.app.util.cparser.CPP.PreProcessor.PPToken getDef​(ghidra.app.util.cparser.CPP.PreProcessor.PPToken def)
      • 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​(java.lang.String path)
      • getNumericType

        public int getNumericType​(java.lang.String val)
      • getDoubleValue

        public java.lang.Double getDoubleValue​(java.lang.String val)
      • setOutputStream

        public void setOutputStream​(java.io.OutputStream fos)
      • parse

        public void parse​(java.lang.String filename)
      • main

        public static void main​(java.lang.String[] args)
      • ElseIfCondition

        public final ghidra.app.util.cparser.CPP.PreProcessor.PPToken ElseIfCondition()
                                                                               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
        PPToken EqualityExpression() : {PPToken t,u,v;} { (t=RelationalExpression() ( LOOKAHEAD(2) u=EqualTo(){ if (verboseLevel()==7) print(u.image); } v=RelationalExpression(){ t.setTruth(t.compareTo(v)==0); if (verboseLevel()==7) print(": "); })* ){return t;} }
        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
      • GreaterThanExpression

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

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

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

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

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

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

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

        public void ReInit​(java.io.InputStream stream)
        Reinitialise.
      • ReInit

        public void ReInit​(java.io.InputStream stream,
                           java.lang.String encoding)
        Reinitialise.
      • ReInit

        public void ReInit​(java.io.Reader stream)
        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.