Skip to content

Commit

Permalink
Work on unary minus, unary plus, unary overload. Closes #518. Closes #…
Browse files Browse the repository at this point in the history
…484. Closes #724. Closes #725.
  • Loading branch information
nddrylliog committed Nov 19, 2013
1 parent e2f57e2 commit 5cac52e
Show file tree
Hide file tree
Showing 8 changed files with 13,211 additions and 13,014 deletions.
4 changes: 4 additions & 0 deletions source/rock/frontend/AstBuilder.ooc
Expand Up @@ -1224,6 +1224,10 @@ AstBuilder: class {
UnaryOp new(inner, UnaryOpType unaryMinus, token())
}

onUnaryPlus: unmangled(nq_onUnaryPlus) func (inner: Expression) -> UnaryOp {
UnaryOp new(inner, UnaryOpType unaryPlus, token())
}

onParenthesis: unmangled(nq_onParenthesis) func (inner: Expression) -> Parenthesis {
Parenthesis new(inner, token())
}
Expand Down

0 comments on commit 5cac52e

Please sign in to comment.