diff options
Diffstat (limited to 'runtime/ActionScript/project/src/org/antlr/runtime/MismatchedTreeNodeException.as')
-rw-r--r-- | runtime/ActionScript/project/src/org/antlr/runtime/MismatchedTreeNodeException.as | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/ActionScript/project/src/org/antlr/runtime/MismatchedTreeNodeException.as b/runtime/ActionScript/project/src/org/antlr/runtime/MismatchedTreeNodeException.as new file mode 100644 index 0000000..c008531 --- /dev/null +++ b/runtime/ActionScript/project/src/org/antlr/runtime/MismatchedTreeNodeException.as @@ -0,0 +1,16 @@ +package org.antlr.runtime { + import org.antlr.runtime.tree.TreeNodeStream; + + public class MismatchedTreeNodeException extends RecognitionException { + public var expecting:int; + + public function MismatchedTreeNodeException(expecting:int, input:TreeNodeStream) { + super(input); + this.expecting = expecting; + } + + public function toString():String { + return "MismatchedTreeNodeException("+unexpectedType+"!="+expecting+")"; + } + } +}
\ No newline at end of file |