Improved division split
This commit is contained in:
@ -83,9 +83,7 @@ func toASTNode(tokens token.List, buffer []byte) (Node, error) {
|
||||
return nil, errors.New(errors.MissingOperand, nil, expr.Token.End())
|
||||
}
|
||||
|
||||
name := expr.Children[0].Token
|
||||
value := expr.Children[1]
|
||||
return &Define{Name: name, Value: value}, nil
|
||||
return &Define{Expression: expr}, nil
|
||||
|
||||
case IsAssignment(expr):
|
||||
if len(expr.Children) < 2 {
|
||||
|
Reference in New Issue
Block a user