KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > antlr > ToolErrorHandler


1 package antlr;
2
3 /* ANTLR Translator Generator
4  * Project led by Terence Parr at http://www.jGuru.com
5  * Software rights: http://www.antlr.org/RIGHTS.html
6  *
7  * $Id: //depot/code/org.antlr/main/main/antlr/ToolErrorHandler.java#4 $
8  */

9
10 import antlr.collections.impl.BitSet;
11
12 interface ToolErrorHandler {
13
14
15     /** Issue a warning about ambiguity between a alternates
16      * @param blk The block being analyzed
17      * @param lexicalAnalysis true for lexical rule
18      * @param depth The depth of the ambiguity
19      * @param sets An array of bitsets containing the ambiguities
20      * @param altIdx1 The zero-based index of the first ambiguous alternative
21      * @param altIdx2 The zero-based index of the second ambiguous alternative
22      */

23     public void warnAltAmbiguity(
24         Grammar grammar,
25         AlternativeBlock blk,
26         boolean lexicalAnalysis,
27         int depth,
28         Lookahead[] sets,
29         int altIdx1,
30         int altIdx2
31         );
32
33     /** Issue a warning about ambiguity between an alternate and exit path.
34      * @param blk The block being analyzed
35      * @param lexicalAnalysis true for lexical rule
36      * @param depth The depth of the ambiguity
37      * @param sets An array of bitsets containing the ambiguities
38      * @param altIdx The zero-based index of the ambiguous alternative
39      */

40     public void warnAltExitAmbiguity(
41         Grammar grammar,
42         BlockWithImpliedExitPath blk,
43         boolean lexicalAnalysis,
44         int depth,
45         Lookahead[] sets,
46         int altIdx
47         );
48 }
49
Popular Tags