diff options
Diffstat (limited to 'antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/MismatchedSetException.js')
-rwxr-xr-x | antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/MismatchedSetException.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/MismatchedSetException.js b/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/MismatchedSetException.js new file mode 100755 index 0000000..b1fef8f --- /dev/null +++ b/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/MismatchedSetException.js @@ -0,0 +1,15 @@ +org.antlr.runtime.MismatchedSetException = function(expecting, input) { + org.antlr.runtime.MismatchedSetException.superclass.constructor.call( + this, input); + this.expecting = expecting; +}; + +org.antlr.lang.extend( + org.antlr.runtime.MismatchedSetException, + org.antlr.runtime.RecognitionException, { + toString: function() { + return "MismatchedSetException(" + + this.getUnexpectedType() + "!=" + this.expecting + ")"; + }, + name: "org.antlr.runtime.MismatchedSetException" +}); |