C# Class Antlr3.Tool.ErrorManager

Show file Open project: antlr/antlrcs Class Usage Examples

Public Properties

Property Type Description
ErrorsForcingNoAnalysis Antlr3.Misc.BitSet
ErrorsForcingNoCodegen Antlr3.Misc.BitSet
emitSingleError ICollection>.IDictionary

Public Methods

Method Description
AnalysisAborted ( Antlr3.Analysis.DecisionProbe probe ) : void
AssertTrue ( bool condition, String message ) : void
DanglingState ( Antlr3.Analysis.DecisionProbe probe, Antlr3.Analysis.DFAState d ) : void
DoNotAttemptAnalysis ( ) : bool
DoNotAttemptCodeGen ( ) : bool
Error ( int msgID ) : void
Error ( int msgID, Exception e ) : void
Error ( int msgID, Object arg ) : void
Error ( int msgID, Object arg, Exception e ) : void
Error ( int msgID, Object arg, Object arg2 ) : void
FormatWantsSingleLineMessage ( ) : bool
GetErrorListener ( ) : IANTLRErrorListener
GetErrorState ( ) : ErrorState
GetLocationFormat ( ) : Antlr4.StringTemplate.Template
GetMessage ( int msgID ) : Antlr4.StringTemplate.Template
GetMessageFormat ( ) : Antlr4.StringTemplate.Template
GetMessageType ( int msgID ) : String
GetNumErrors ( ) : int
GetReportFormat ( ) : Antlr4.StringTemplate.Template
GetStringTemplateErrorListener ( ) : Antlr4.StringTemplate.ITemplateErrorListener
GetTool ( ) : Antlr3.AntlrTool
GrammarError ( int msgID, Grammar g, Antlr.Runtime.IToken token ) : void
GrammarError ( int msgID, Grammar g, Antlr.Runtime.IToken token, Object arg ) : void
GrammarError ( int msgID, Grammar g, Antlr.Runtime.IToken token, Object arg, Object arg2 ) : void
GrammarWarning ( int msgID, Grammar g, Antlr.Runtime.IToken token ) : void
GrammarWarning ( int msgID, Grammar g, Antlr.Runtime.IToken token, Object arg ) : void
GrammarWarning ( int msgID, Grammar g, Antlr.Runtime.IToken token, Object arg, Object arg2 ) : void
Info ( String msg ) : void
InsufficientPredicates ( Antlr3.Analysis.DecisionProbe probe, Antlr3.Analysis.DFAState d, IDictionary altToUncoveredLocations ) : void
InternalError ( Object error ) : void
InternalError ( Object error, Exception e ) : void
LeftRecursion ( Antlr3.Analysis.DecisionProbe probe, int alt, System.Collections.ICollection targetRules, System.Collections.ICollection callSiteStates ) : void
LeftRecursionCycles ( System.Collections.ICollection cycles ) : void
NonLLStarDecision ( Antlr3.Analysis.DecisionProbe probe ) : void
Nondeterminism ( Antlr3.Analysis.DecisionProbe probe, Antlr3.Analysis.DFAState d ) : void
Panic ( ) : void
RecursionOverflow ( Antlr3.Analysis.DecisionProbe probe, Antlr3.Analysis.DFAState sampleBadState, int alt, ICollection targetRules, ICollection callSiteStates ) : void
RemoveErrorListener ( ) : void
ResetErrorState ( ) : void
SetErrorListener ( IANTLRErrorListener listener ) : void
SetFormat ( String formatName ) : void
SetLocale ( System.Globalization.CultureInfo locale ) : void
SetTool ( Antlr3.AntlrTool tool ) : void
SyntaxError ( int msgID, Grammar grammar, Antlr.Runtime.IToken token, Object arg, Antlr.Runtime.RecognitionException re ) : void
UnreachableAlts ( Antlr3.Analysis.DecisionProbe probe, IEnumerable alts ) : void
Warning ( int msgID, Object arg ) : void

Private Methods

Method Description
ErrorManager ( ) : System
GetLastNonErrorManagerCodeLocation ( Exception e ) : System.Diagnostics.StackFrame
InitIdToMessageNameMapping ( ) : bool
Initialize ( ) : void
RawError ( String msg ) : void
RawError ( String msg, Exception e ) : void
VerifyFormat ( ) : bool
VerifyMessages ( ) : bool

Method Details

AnalysisAborted() public static method

public static AnalysisAborted ( Antlr3.Analysis.DecisionProbe probe ) : void
probe Antlr3.Analysis.DecisionProbe
return void

AssertTrue() public static method

public static AssertTrue ( bool condition, String message ) : void
condition bool
message String
return void

DanglingState() public static method

public static DanglingState ( Antlr3.Analysis.DecisionProbe probe, Antlr3.Analysis.DFAState d ) : void
probe Antlr3.Analysis.DecisionProbe
d Antlr3.Analysis.DFAState
return void

DoNotAttemptAnalysis() public static method

public static DoNotAttemptAnalysis ( ) : bool
return bool

DoNotAttemptCodeGen() public static method

public static DoNotAttemptCodeGen ( ) : bool
return bool

Error() public static method

public static Error ( int msgID ) : void
msgID int
return void

Error() public static method

public static Error ( int msgID, Exception e ) : void
msgID int
e System.Exception
return void

Error() public static method

public static Error ( int msgID, Object arg ) : void
msgID int
arg Object
return void

Error() public static method

public static Error ( int msgID, Object arg, Exception e ) : void
msgID int
arg Object
e System.Exception
return void

Error() public static method

public static Error ( int msgID, Object arg, Object arg2 ) : void
msgID int
arg Object
arg2 Object
return void

FormatWantsSingleLineMessage() public static method

public static FormatWantsSingleLineMessage ( ) : bool
return bool

GetErrorListener() public static method

public static GetErrorListener ( ) : IANTLRErrorListener
return IANTLRErrorListener

GetErrorState() public static method

public static GetErrorState ( ) : ErrorState
return ErrorState

GetLocationFormat() public static method

public static GetLocationFormat ( ) : Antlr4.StringTemplate.Template
return Antlr4.StringTemplate.Template

GetMessage() public static method

public static GetMessage ( int msgID ) : Antlr4.StringTemplate.Template
msgID int
return Antlr4.StringTemplate.Template

GetMessageFormat() public static method

public static GetMessageFormat ( ) : Antlr4.StringTemplate.Template
return Antlr4.StringTemplate.Template

GetMessageType() public static method

public static GetMessageType ( int msgID ) : String
msgID int
return String

GetNumErrors() public static method

public static GetNumErrors ( ) : int
return int

GetReportFormat() public static method

public static GetReportFormat ( ) : Antlr4.StringTemplate.Template
return Antlr4.StringTemplate.Template

GetStringTemplateErrorListener() public static method

public static GetStringTemplateErrorListener ( ) : Antlr4.StringTemplate.ITemplateErrorListener
return Antlr4.StringTemplate.ITemplateErrorListener

GetTool() public static method

public static GetTool ( ) : Antlr3.AntlrTool
return Antlr3.AntlrTool

GrammarError() public static method

public static GrammarError ( int msgID, Grammar g, Antlr.Runtime.IToken token ) : void
msgID int
g Grammar
token Antlr.Runtime.IToken
return void

GrammarError() public static method

public static GrammarError ( int msgID, Grammar g, Antlr.Runtime.IToken token, Object arg ) : void
msgID int
g Grammar
token Antlr.Runtime.IToken
arg Object
return void

GrammarError() public static method

public static GrammarError ( int msgID, Grammar g, Antlr.Runtime.IToken token, Object arg, Object arg2 ) : void
msgID int
g Grammar
token Antlr.Runtime.IToken
arg Object
arg2 Object
return void

GrammarWarning() public static method

public static GrammarWarning ( int msgID, Grammar g, Antlr.Runtime.IToken token ) : void
msgID int
g Grammar
token Antlr.Runtime.IToken
return void

GrammarWarning() public static method

public static GrammarWarning ( int msgID, Grammar g, Antlr.Runtime.IToken token, Object arg ) : void
msgID int
g Grammar
token Antlr.Runtime.IToken
arg Object
return void

GrammarWarning() public static method

public static GrammarWarning ( int msgID, Grammar g, Antlr.Runtime.IToken token, Object arg, Object arg2 ) : void
msgID int
g Grammar
token Antlr.Runtime.IToken
arg Object
arg2 Object
return void

Info() public static method

public static Info ( String msg ) : void
msg String
return void

InsufficientPredicates() public static method

public static InsufficientPredicates ( Antlr3.Analysis.DecisionProbe probe, Antlr3.Analysis.DFAState d, IDictionary altToUncoveredLocations ) : void
probe Antlr3.Analysis.DecisionProbe
d Antlr3.Analysis.DFAState
altToUncoveredLocations IDictionary
return void

InternalError() public static method

public static InternalError ( Object error ) : void
error Object
return void

InternalError() public static method

public static InternalError ( Object error, Exception e ) : void
error Object
e System.Exception
return void

LeftRecursion() public static method

public static LeftRecursion ( Antlr3.Analysis.DecisionProbe probe, int alt, System.Collections.ICollection targetRules, System.Collections.ICollection callSiteStates ) : void
probe Antlr3.Analysis.DecisionProbe
alt int
targetRules System.Collections.ICollection
callSiteStates System.Collections.ICollection
return void

LeftRecursionCycles() public static method

public static LeftRecursionCycles ( System.Collections.ICollection cycles ) : void
cycles System.Collections.ICollection
return void

NonLLStarDecision() public static method

public static NonLLStarDecision ( Antlr3.Analysis.DecisionProbe probe ) : void
probe Antlr3.Analysis.DecisionProbe
return void

Nondeterminism() public static method

public static Nondeterminism ( Antlr3.Analysis.DecisionProbe probe, Antlr3.Analysis.DFAState d ) : void
probe Antlr3.Analysis.DecisionProbe
d Antlr3.Analysis.DFAState
return void

Panic() public static method

public static Panic ( ) : void
return void

RecursionOverflow() public static method

public static RecursionOverflow ( Antlr3.Analysis.DecisionProbe probe, Antlr3.Analysis.DFAState sampleBadState, int alt, ICollection targetRules, ICollection callSiteStates ) : void
probe Antlr3.Analysis.DecisionProbe
sampleBadState Antlr3.Analysis.DFAState
alt int
targetRules ICollection
callSiteStates ICollection
return void

RemoveErrorListener() public static method

public static RemoveErrorListener ( ) : void
return void

ResetErrorState() public static method

public static ResetErrorState ( ) : void
return void

SetErrorListener() public static method

public static SetErrorListener ( IANTLRErrorListener listener ) : void
listener IANTLRErrorListener
return void

SetFormat() public static method

public static SetFormat ( String formatName ) : void
formatName String
return void

SetLocale() public static method

public static SetLocale ( System.Globalization.CultureInfo locale ) : void
locale System.Globalization.CultureInfo
return void

SetTool() public static method

public static SetTool ( Antlr3.AntlrTool tool ) : void
tool Antlr3.AntlrTool
return void

SyntaxError() public static method

public static SyntaxError ( int msgID, Grammar grammar, Antlr.Runtime.IToken token, Object arg, Antlr.Runtime.RecognitionException re ) : void
msgID int
grammar Grammar
token Antlr.Runtime.IToken
arg Object
re Antlr.Runtime.RecognitionException
return void

UnreachableAlts() public static method

public static UnreachableAlts ( Antlr3.Analysis.DecisionProbe probe, IEnumerable alts ) : void
probe Antlr3.Analysis.DecisionProbe
alts IEnumerable
return void

Warning() public static method

public static Warning ( int msgID, Object arg ) : void
msgID int
arg Object
return void

Property Details

ErrorsForcingNoAnalysis public static property

public static Antlr3.Misc.BitSet ErrorsForcingNoAnalysis
return Antlr3.Misc.BitSet

ErrorsForcingNoCodegen public static property

public static Antlr3.Misc.BitSet ErrorsForcingNoCodegen
return Antlr3.Misc.BitSet

emitSingleError public static property

public static IDictionary> emitSingleError
return ICollection>.IDictionary