source: trunk/yao/share/antlr-2.7.7/antlr/ToolErrorHandler.java @ 1

Last change on this file since 1 was 1, checked in by lnalod, 15 years ago

Initial import of YAO sources

File size: 1.5 KB
Line 
1package antlr;
2
3/* ANTLR Translator Generator
4 * Project led by Terence Parr at http://www.cs.usfca.edu
5 * Software rights: http://www.antlr.org/license.html
6 *
7 * $Id: //depot/code/org.antlr/release/antlr-2.7.7/antlr/ToolErrorHandler.java#2 $
8 */
9
10import antlr.collections.impl.BitSet;
11
12interface 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}
Note: See TracBrowser for help on using the repository browser.