Package ghidra.sleigh.grammar
Class ParsingEnvironment
- java.lang.Object
-
- ghidra.sleigh.grammar.ParsingEnvironment
-
public class ParsingEnvironment extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ParsingEnvironment(LineArrayListWriter writer)
ParsingEnvironment(ParsingEnvironment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(BailoutException be)
java.lang.String
getErrorHeader(org.antlr.runtime.RecognitionException e)
java.lang.String
getErrorMessage(org.antlr.runtime.RecognitionException e, java.lang.String[] tokenNames, LineArrayListWriter mywriter)
java.lang.String
getLexerErrorMessage(org.antlr.runtime.RecognitionException e, java.lang.String[] tokenNames)
int
getLexingErrors()
Locator
getLocator()
java.lang.String
getParserErrorMessage(org.antlr.runtime.RecognitionException e, java.lang.String[] tokenNames)
int
getParsingErrors()
java.lang.String
getTokenErrorDisplay(org.antlr.runtime.Token t)
LineArrayListWriter
getWriter()
void
lexingError()
void
parsingError()
-
-
-
Constructor Detail
-
ParsingEnvironment
public ParsingEnvironment(ParsingEnvironment env)
-
ParsingEnvironment
public ParsingEnvironment(LineArrayListWriter writer)
-
-
Method Detail
-
getLexingErrors
public int getLexingErrors()
-
getParsingErrors
public int getParsingErrors()
-
lexingError
public void lexingError()
-
parsingError
public void parsingError()
-
getLocator
public Locator getLocator()
-
getWriter
public LineArrayListWriter getWriter()
-
getErrorHeader
public java.lang.String getErrorHeader(org.antlr.runtime.RecognitionException e)
-
getLexerErrorMessage
public java.lang.String getLexerErrorMessage(org.antlr.runtime.RecognitionException e, java.lang.String[] tokenNames)
-
getParserErrorMessage
public java.lang.String getParserErrorMessage(org.antlr.runtime.RecognitionException e, java.lang.String[] tokenNames)
-
getErrorMessage
public java.lang.String getErrorMessage(org.antlr.runtime.RecognitionException e, java.lang.String[] tokenNames, LineArrayListWriter mywriter)
-
getTokenErrorDisplay
public java.lang.String getTokenErrorDisplay(org.antlr.runtime.Token t)
-
format
public java.lang.String format(BailoutException be)
-
-