Implements binding parenthesized expression

This commit is contained in:
Deukhoofd 2019-05-21 21:00:56 +02:00
parent 80998eab14
commit c8183e5405
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ BoundExpression* Binder::BindExpression(ParsedExpression* expression){
case ParsedExpressionKind ::LiteralBool:
return new BoundLiteralBoolExpression(((LiteralBoolExpression*)expression)->GetValue(), expression->GetStartPosition(), expression->GetLength());
case ParsedExpressionKind ::Parenthesized:
return BindExpression(((ParenthesizedExpression*)expression)->GetInnerExpression());
case ParsedExpressionKind ::Bad:
return new BoundBadExpression(expression->GetStartPosition(), expression-> GetLength());
}