Skip to content

Commit

Permalink
Rename :dot2 and :dot3 sexps to s(:irange), s(:erange)
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Nov 17, 2013
1 parent c7f76cb commit 6b02c5e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lib/opal/nodes/literal.rb
Expand Up @@ -163,8 +163,8 @@ def compile
end
end

class ExclusiveRangeNode < Base
handle :dot2
class InclusiveRangeNode < Base
handle :irange

children :start, :finish

Expand All @@ -175,8 +175,8 @@ def compile
end
end

class InclusiveRangeNode < Base
handle :dot3
class ExclusiveRangeNode < Base
handle :erange

children :start, :finish

Expand Down
4 changes: 2 additions & 2 deletions lib/opal/parser/grammar.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/opal/parser/grammar.y
Expand Up @@ -469,12 +469,12 @@ rule
| backref tOP_ASGN arg
| arg tDOT2 arg
{
result = s(:dot2, val[0], val[2])
result = s(:irange, val[0], val[2])
result.line = val[0].line
}
| arg tDOT3 arg
{
result = s(:dot3, val[0], val[2])
result = s(:erange, val[0], val[2])
result.line = val[0].line
}
| arg '+' arg
Expand Down

0 comments on commit 6b02c5e

Please sign in to comment.