Mercurial > jsparser
changeset 5:f66ec534e75a
renamed BinaryOperator to BinaryOp, UnaryOperator to UnaryOp.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sat, 30 May 2009 13:31:37 -0700 |
parents | 559378a3ec26 |
children | d62acb57d95b |
files | jsparser.js |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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;