01: package antlr;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.cs.usfca.edu
05: * Software rights: http://www.antlr.org/license.html
06: */
07:
08: import antlr.collections.impl.BitSet;
09:
10: interface ToolErrorHandler {
11:
12: /** Issue a warning about ambiguity between a alternates
13: * @param blk The block being analyzed
14: * @param lexicalAnalysis true for lexical rule
15: * @param depth The depth of the ambiguity
16: * @param sets An array of bitsets containing the ambiguities
17: * @param altIdx1 The zero-based index of the first ambiguous alternative
18: * @param altIdx2 The zero-based index of the second ambiguous alternative
19: */
20: public void warnAltAmbiguity(Grammar grammar, AlternativeBlock blk,
21: boolean lexicalAnalysis, int depth, Lookahead[] sets,
22: int altIdx1, int altIdx2);
23:
24: /** Issue a warning about ambiguity between an alternate and exit path.
25: * @param blk The block being analyzed
26: * @param lexicalAnalysis true for lexical rule
27: * @param depth The depth of the ambiguity
28: * @param sets An array of bitsets containing the ambiguities
29: * @param altIdx The zero-based index of the ambiguous alternative
30: */
31: public void warnAltExitAmbiguity(Grammar grammar,
32: BlockWithImpliedExitPath blk, boolean lexicalAnalysis,
33: int depth, Lookahead[] sets, int altIdx);
34: }
|