AST development

This commit is contained in:
Michael Schimmel
2025-08-30 15:39:35 +02:00
parent 59e71b6d7b
commit f00676a935
6 changed files with 169 additions and 93 deletions
+2 -2
View File
@@ -273,9 +273,9 @@ begin
end;
if boolResult then
Result := TAstValue.FromScalar(TScalar.FromInt64(1))
Result := TAstValue.FromScalar(TScalar.FromBoolean(true))
else
Result := TAstValue.FromScalar(TScalar.FromInt64(0));
Result := TAstValue.FromScalar(TScalar.FromBoolean(false));
end;
function TEvaluatorVisitor.VisitUnaryExpression(const Node: IUnaryExpressionNode): TAstValue;
+1 -1
View File
@@ -313,7 +313,7 @@ begin
case Self of
boAdd: Result := '+';
boSubtract: Result := '-';
boMultiply: Result := '*';
boMultiply: Result := #$2A2F;
boDivide: Result := '/';
boEqual: Result := '==';
boNotEqual: Result := '!=';