pointers kinda works

This commit is contained in:
nub31
2025-05-17 18:22:23 +02:00
parent 942b38992b
commit 97611317f7
7 changed files with 240 additions and 16 deletions

View File

@@ -0,0 +1,15 @@
namespace Nub.Lang.Frontend.Parsing;
public class UnaryExpressionNode(UnaryExpressionOperator @operator, ExpressionNode operand) : ExpressionNode
{
public UnaryExpressionOperator Operator { get; } = @operator;
public ExpressionNode Operand { get; } = operand;
}
public enum UnaryExpressionOperator
{
AddressOf,
Dereference,
Negate,
Invert
}