# HG changeset patch # User Atul Varma # Date 1243715497 25200 # Node ID f66ec534e75ad4ca4d073370b52dc1ee295bd43b # Parent 559378a3ec26f3641ea04c1c246c996c44d9cbbc renamed BinaryOperator to BinaryOp, UnaryOperator to UnaryOp. diff -r 559378a3ec26 -r f66ec534e75a jsparser.js --- a/jsparser.js Sat May 30 13:28:20 2009 -0700 +++ b/jsparser.js Sat May 30 13:31:37 2009 -0700 @@ -48,20 +48,20 @@ Parsing.BinaryOrUnaryOp.prototype = new Parsing.Symbol( {nullDenotation: function(parser) { - var unaryOp = this.extend(Parsing.UnaryOperator.prototype); + var unaryOp = this.extend(Parsing.UnaryOp.prototype); return unaryOp.nullDenotation(parser); }, leftDenotation: function(parser, left) { - var binaryOp = this.extend(Parsing.BinaryOperator.prototype); + var binaryOp = this.extend(Parsing.BinaryOp.prototype); return binaryOp.leftDenotation(parser, left); } }); -Parsing.UnaryOperator = function UnaryOperator(options) { +Parsing.UnaryOp = function UnaryOp(options) { Parsing.Symbol.call(this, options); }; -Parsing.UnaryOperator.prototype = new Parsing.Symbol( +Parsing.UnaryOp.prototype = new Parsing.Symbol( {nullDenotation: function(parser) { this.arity = "unary"; this.operand = parser.token; @@ -73,11 +73,11 @@ } }); -Parsing.BinaryOperator = function BinaryOperator(options) { +Parsing.BinaryOp = function BinaryOp(options) { Parsing.Symbol.call(this, options); }; -Parsing.BinaryOperator.prototype = new Parsing.Symbol( +Parsing.BinaryOp.prototype = new Parsing.Symbol( {leftDenotation: function(parser, left) { this.arity = "binary"; this.leftOperand = left;