RecognitionException e = null;
// if next token is what we are looking for then "delete" this token
if ( mismatchIsUnwantedToken( input,
ttype,
text ) ) {
e = new UnwantedTokenException( ttype,
input );
input.consume(); // simply delete extra token
reportError( e ); // report after consuming so AW sees the token in the exception
// we want to return the token we're actually matching
Token matchedSymbol = input.LT( 1 );