Home | History | Annotate | Download | only in runtime
      1 package org.antlr.runtime {
      2 	import org.antlr.runtime.tree.TreeNodeStream;
      3 	
      4 	public class MismatchedTreeNodeException extends RecognitionException {
      5 		public var expecting:int;
      6 	
      7 		public function MismatchedTreeNodeException(expecting:int, input:TreeNodeStream) {
      8 			super(input);
      9 			this.expecting = expecting;
     10 		}
     11 	
     12 		public function toString():String {
     13 			return "MismatchedTreeNodeException("+unexpectedType+"!="+expecting+")";
     14 		}
     15 	}
     16 }