Recover() public method

* Lexers can normally match any char in it's vocabulary after matching * a token, so do the easy thing and just kill a character and hope * it all works out. You can instead use the rule invocation stack * to do sophisticated error recovery if you are in a fragment rule. *
public Recover ( RecognitionException re ) : void
re RecognitionException
return void
        public AddsAntlr3Runtime()
        {
            _treeAdaptor = new CommonTreeAdaptor();
            _treeAdaptor.SetTokenBoundaries(new object(), _token, _token);
            _treeAdaptor.RulePostProcessing(new object());
            _treeAdaptor.Nil();
            _treeAdaptor.AddChild(new object(), new object());
            _treeAdaptor.Create(_token);

            _parser.TraceIn("", 0);
            _parser.TraceOut("", 0);

            _lexer.TraceOut("", 0);
            _lexer.TraceIn("", 0);
            _lexer.Recover(new Antlr.Runtime.RecognitionException(""));
            _lexer.MatchAny();
            _lexer.Match("");
            _lexer.Match(0);

            _tokenStream.LT(0);
            _tokenStream.Get(0);
            _intStream.LA(0);
            _intStream.Consume();
            _charStream.LT(0);
            _dfa.Predict(_intStream);
            _dfa.Error(new Antlr.Runtime.NoViableAltException(""));
        }