Refactor statements

This commit is contained in:
nub31
2025-06-02 15:27:19 +02:00
parent 9f7bc4d2d5
commit 96ad3d2677
36 changed files with 354 additions and 230 deletions

View File

@@ -0,0 +1,14 @@
using Nub.Lang.Frontend.Lexing;
using Nub.Lang.Frontend.Typing;
namespace Nub.Lang.Frontend.Parsing;
public abstract class ExpressionNode(IReadOnlyList<Token> tokens) : Node(tokens)
{
private NubType? _type;
public NubType Type
{
get => _type ?? throw new Exception("Tried to access expression type before type was populated");
set => _type = value;
}
}