Public Member Functions

antlr.ToolErrorHandler Interface Reference

Inheritance diagram for antlr.ToolErrorHandler:
antlr.DefaultToolErrorHandler

List of all members.

Public Member Functions

void warnAltAmbiguity (Grammar grammar, AlternativeBlock blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx1, int altIdx2)
void warnAltExitAmbiguity (Grammar grammar, BlockWithImpliedExitPath blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx)

Member Function Documentation

void antlr.ToolErrorHandler.warnAltAmbiguity ( Grammar  grammar,
AlternativeBlock  blk,
boolean  lexicalAnalysis,
int  depth,
Lookahead[]  sets,
int  altIdx1,
int  altIdx2 
)

Issue a warning about ambiguity between a alternates

Parameters:
blk The block being analyzed
lexicalAnalysis true for lexical rule
depth The depth of the ambiguity
sets An array of bitsets containing the ambiguities
altIdx1 The zero-based index of the first ambiguous alternative
altIdx2 The zero-based index of the second ambiguous alternative

Implemented in antlr.DefaultToolErrorHandler.

Referenced by antlr.LLkAnalyzer.deterministic().

void antlr.ToolErrorHandler.warnAltExitAmbiguity ( Grammar  grammar,
BlockWithImpliedExitPath  blk,
boolean  lexicalAnalysis,
int  depth,
Lookahead[]  sets,
int  altIdx 
)

Issue a warning about ambiguity between an alternate and exit path.

Parameters:
blk The block being analyzed
lexicalAnalysis true for lexical rule
depth The depth of the ambiguity
sets An array of bitsets containing the ambiguities
altIdx The zero-based index of the ambiguous alternative

Implemented in antlr.DefaultToolErrorHandler.

Referenced by antlr.LLkAnalyzer.deterministicImpliedPath().


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties