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,9 @@
using Nub.Lang.Frontend.Lexing;
namespace Nub.Lang.Frontend.Parsing;
public class WhileNode(IReadOnlyList<Token> tokens, ExpressionNode condition, BlockNode body) : StatementNode(tokens)
{
public ExpressionNode Condition { get; } = condition;
public BlockNode Body { get; } = body;
}