simplifying RangeNode grammar a bit.

This commit is contained in:
Jeremy Ashkenas
2010-09-04 06:48:20 -04:00
parent 493780efab
commit 3b60aad487
5 changed files with 129 additions and 133 deletions

View File

@@ -550,9 +550,9 @@ exports.RangeNode = class RangeNode extends BaseNode
class: 'RangeNode'
children: ['from', 'to']
constructor: (@from, @to, exclusive) ->
constructor: (@from, @to, tag) ->
super()
@exclusive = !!exclusive
@exclusive = tag is 'exclusive'
@equals = if @exclusive then '' else '='
# Compiles the range's source variables -- where it starts and where it ends.