Mercurial > jsparser
diff jsparser.js @ 9:bc6f30e0f948
renamed left/right parens to be plain english and not koderSpeak
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sat, 30 May 2009 15:38:03 -0700 |
parents | 0c62f0d3ddf7 |
children | 8de776b8ed31 |
line wrap: on
line diff
--- a/jsparser.js Sat May 30 15:36:57 2009 -0700 +++ b/jsparser.js Sat May 30 15:38:03 2009 -0700 @@ -179,15 +179,15 @@ match: '-', leftBindingPower: 60}), - new Parsing.Symbol({name: 'leftParenthesis', + new Parsing.Symbol({name: 'left parenthesis', match: '(', nullDenotation: function(parser) { var contents = parser.expression(0); - parser.advance('rightParenthesis'); + parser.advance('right parenthesis'); return contents; }}), - new Parsing.Symbol({name: 'rightParenthesis', + new Parsing.Symbol({name: 'right parenthesis', match: ')'}), new Parsing.BinaryOp({name: 'multiply',