Skip to content

Commit

Permalink
Backport of #152
Browse files Browse the repository at this point in the history
  • Loading branch information
odino committed Feb 2, 2019
1 parent 748971b commit 3f6f423
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions evaluator/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ func Eval(node ast.Node, env *object.Environment) object.Object {
return &object.Number{Token: node.Token, Value: node.Value}

case *ast.NullLiteral:
return &object.Null{Token: node.Token}
// return NULL
return NULL

case *ast.StringLiteral:
return &object.String{Token: node.Token, Value: node.Value}
Expand Down

0 comments on commit 3f6f423

Please sign in to comment.