Add an additional note about the relation between reportContextSensitivity and reportAmbiguity

This commit is contained in:
Sam Harwell 2014-06-16 00:01:42 -05:00
parent 64b6408e4a
commit 3574cbd94b
1 changed files with 8 additions and 0 deletions

View File

@ -86,6 +86,10 @@ public interface ANTLRErrorListener {
* This method is called by the parser when a full-context prediction
* results in an ambiguity.
*
* <p>Each full-context prediction which does not result in a syntax error
* will call either {@link #reportContextSensitivity} or
* {@link reportAmbiguity}.</p>
*
* <p>When {@code ambigAlts} is not null, it contains the set of potentially
* viable alternatives identified by the prediction algorithm. When
* {@code ambigAlts} is null, use {@link ATNConfigSet#getAlts} to obtain the
@ -160,6 +164,10 @@ public interface ANTLRErrorListener {
* This method is called by the parser when a full-context prediction has a
* unique result.
*
* <p>Each full-context prediction which does not result in a syntax error
* will call either {@link #reportContextSensitivity} or
* {@link reportAmbiguity}.</p>
*
* <p>For prediction implementations that only evaluate full-context
* predictions when an SLL conflict is found (including the default
* {@link ParserATNSimulator} implementation), this method reports cases