KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > persistence > antlr > ToolErrorHandler


1 package persistence.antlr;
2
3 /* ANTLR Translator Generator
4  * Project led by Terence Parr at http://www.jGuru.com
5  * Software rights: http://www.antlr.org/license.html
6  *
7  */

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

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

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