Skip to content

Commit

Permalink
still having issue!
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonak-Adipta-Kalita committed May 9, 2023
1 parent ae61631 commit 7ff426f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions evaluator/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ func Eval(node ast.Node, env *object.Environment) object.Object {
return &object.Float{Value: node.Value}
case *ast.ObjectCallExpression:
res := evalObjectCallExpression(node, env, file.GetFileName(), node.Token.Line)
if isError(res) {
fmt.Fprintf(os.Stderr, "Error calling object-method %s\n", res.Inspect())
}
return res
}
return nil
Expand Down
1 change: 1 addition & 0 deletions parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ var precedences = map[token.TokenType]int{
token.MODULO: MODULO,
token.CARET: CARET,
token.LPAREN: CALL,
token.DOT: CALL,
token.LBRACKET: INDEX,
}

Expand Down

0 comments on commit 7ff426f

Please sign in to comment.