Package ghidra.sleigh.grammar
Class SleighPreprocessor
- java.lang.Object
-
- ghidra.sleigh.grammar.SleighPreprocessor
-
- All Implemented Interfaces:
ExpressionEnvironment
public class SleighPreprocessor extends java.lang.Object implements ExpressionEnvironment
-
-
Constructor Summary
Constructors Constructor Description SleighPreprocessor(ghidra.pcodeCPort.slgh_compile.PreprocessorDefinitions definitions, java.io.File inputFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.String lhs, java.lang.String rhs)
boolean
isCompatible()
java.lang.String
lookup(java.lang.String variable)
void
process(LineArrayListWriter writer)
void
reportError(java.lang.String msg)
long
scanForTimestamp()
void
setCompatible(boolean compatible)
java.lang.String
toString()
-
-
-
Method Detail
-
process
public void process(LineArrayListWriter writer) throws java.io.IOException, PreprocessorException, org.antlr.runtime.RecognitionException
- Throws:
java.io.IOException
PreprocessorException
org.antlr.runtime.RecognitionException
-
scanForTimestamp
public long scanForTimestamp() throws java.io.IOException, PreprocessorException, org.antlr.runtime.RecognitionException
- Throws:
java.io.IOException
PreprocessorException
org.antlr.runtime.RecognitionException
-
setCompatible
public void setCompatible(boolean compatible)
-
isCompatible
public boolean isCompatible()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.String lhs, java.lang.String rhs)
- Specified by:
equals
in interfaceExpressionEnvironment
-
lookup
public java.lang.String lookup(java.lang.String variable)
- Specified by:
lookup
in interfaceExpressionEnvironment
-
reportError
public void reportError(java.lang.String msg)
- Specified by:
reportError
in interfaceExpressionEnvironment
-
-