ToolErrorHandler.java
Upload User: afrynkmhm
Upload Date: 2007-01-06
Package Size: 1262k
Code Size: 1k
Development Platform:

Others

  1. package antlr;
  2. /* ANTLR Translator Generator
  3.  * Project led by Terence Parr at http://www.jGuru.com
  4.  * Software rights: http://www.antlr.org/RIGHTS.html
  5.  *
  6.  * $Id: //depot/code/org.antlr/release/antlr-2.7.0/antlr/ToolErrorHandler.java#1 $
  7.  */
  8. import antlr.collections.impl.BitSet;
  9. interface ToolErrorHandler {
  10. /** Issue a warning about ambiguity between a alternates
  11.  * @param blk  The block being analyzed
  12.  * @param lexicalAnalysis  true for lexical rule
  13.  * @param depth  The depth of the ambiguity
  14.  * @param sets  An array of bitsets containing the ambiguities
  15.  * @param altIdx1  The zero-based index of the first ambiguous alternative
  16.  * @param altIdx2  The zero-based index of the second ambiguous alternative
  17.  */
  18. public void warnAltAmbiguity(
  19. Grammar grammar,
  20. AlternativeBlock blk,
  21. boolean lexicalAnalysis,
  22. int depth,
  23. Lookahead[] sets,
  24. int altIdx1,
  25. int altIdx2
  26. );
  27. /** Issue a warning about ambiguity between an alternate and exit path.
  28.  * @param blk  The block being analyzed
  29.  * @param lexicalAnalysis  true for lexical rule
  30.  * @param depth  The depth of the ambiguity
  31.  * @param sets  An array of bitsets containing the ambiguities
  32.  * @param altIdx  The zero-based index of the ambiguous alternative
  33.  */
  34. public void warnAltExitAmbiguity(
  35. Grammar grammar,
  36. BlockWithImpliedExitPath blk,
  37. boolean lexicalAnalysis,
  38. int depth,
  39. Lookahead[] sets,
  40. int altIdx
  41. );
  42. }