Improved division split

This commit is contained in:
2024-07-28 18:12:42 +02:00
parent bb74c0cf50
commit c2c147f1b4
11 changed files with 84 additions and 64 deletions

View File

@ -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 {