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