Implemented array storage
This commit is contained in:
@ -86,9 +86,7 @@ func toASTNode(tokens token.List) (Node, error) {
|
||||
return nil, errors.New(errors.MissingOperand, nil, expr.Token.End())
|
||||
}
|
||||
|
||||
name := expr.Children[0].Token
|
||||
value := expr.Children[1]
|
||||
return &Assign{Name: name, Value: value, Operator: expr.Token}, nil
|
||||
return &Assign{Expression: expr}, nil
|
||||
|
||||
case IsFunctionCall(expr):
|
||||
return &Call{Expression: expr}, nil
|
||||
|
Reference in New Issue
Block a user