org.python.antlr
Class FailFastHandler
- java.lang.Object
-
- org.python.antlr.FailFastHandler
-
public class FailFastHandler extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description FailFastHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiderror(java.lang.String message, PythonTree t)exprerrorExpr(PythonTree t)moderrorMod(PythonTree t)sliceerrorSlice(PythonTree t)stmterrorStmt(PythonTree t)booleanmismatch(org.antlr.runtime.BaseRecognizer br, org.antlr.runtime.IntStream input, int ttype, org.antlr.runtime.BitSet follow)voidrecover(org.antlr.runtime.BaseRecognizer br, org.antlr.runtime.IntStream input, org.antlr.runtime.RecognitionException re)voidrecover(org.antlr.runtime.Lexer lex, org.antlr.runtime.RecognitionException re)java.lang.ObjectrecoverFromMismatchedToken(org.antlr.runtime.BaseRecognizer br, org.antlr.runtime.IntStream input, int ttype, org.antlr.runtime.BitSet follow)voidreportError(org.antlr.runtime.BaseRecognizer br, org.antlr.runtime.RecognitionException re)
-
-
-
Method Detail
-
reportError
public void reportError(org.antlr.runtime.BaseRecognizer br, org.antlr.runtime.RecognitionException re)
-
recover
public void recover(org.antlr.runtime.Lexer lex, org.antlr.runtime.RecognitionException re)
-
recover
public void recover(org.antlr.runtime.BaseRecognizer br, org.antlr.runtime.IntStream input, org.antlr.runtime.RecognitionException re)
-
mismatch
public boolean mismatch(org.antlr.runtime.BaseRecognizer br, org.antlr.runtime.IntStream input, int ttype, org.antlr.runtime.BitSet follow) throws org.antlr.runtime.RecognitionException- Returns:
- True if the caller should handle the mismatch
- Throws:
org.antlr.runtime.RecognitionException
-
recoverFromMismatchedToken
public java.lang.Object recoverFromMismatchedToken(org.antlr.runtime.BaseRecognizer br, org.antlr.runtime.IntStream input, int ttype, org.antlr.runtime.BitSet follow) throws org.antlr.runtime.RecognitionException- Returns:
- null if the caller should handle the mismatch
- Throws:
org.antlr.runtime.RecognitionException
-
errorExpr
public expr errorExpr(PythonTree t)
-
errorMod
public mod errorMod(PythonTree t)
-
errorSlice
public slice errorSlice(PythonTree t)
-
errorStmt
public stmt errorStmt(PythonTree t)
-
error
public void error(java.lang.String message, PythonTree t)
-
-
DMelt 3.0 © DataMelt by jWork.ORG